Add type annotations for ImageGPT
# What does this PR do?

I added type annotations for ImageGPT PyTorch as described in #16059

@Rocketknight1 
_The documentation is not available anymore as the PR was closed or merged._