Remove imports and use forward references in ONNX feature
# What does this PR do?

Type annotations should not be responsible for imports, so moving the pretrained models import in the onnx feature file inside a TYPE_CHECKING block and using fast-forward references instead.
_The documentation is not available anymore as the PR was closed or merged._