[ResNet] Improve backbone
# What does this PR do?

This PR improves the ResNetBackbone, by not assuming stages are always 4, and improving tests.
_The documentation is not available anymore as the PR was closed or merged._