Move load_yaml_file to common (#131924)
Summary:
This is for https://github.com/pytorch/pytorch/pull/131724 and future timm_models.py refactoring.
X-link: https://github.com/pytorch/pytorch/pull/131924
Approved by: https://github.com/shunting314, https://github.com/huydhn
Reviewed By: clee2000
Differential Revision: D60322728
Pulled By: kit1980
fbshipit-source-id: f8daf52846fb0180e2bbef973e86f42dc88e9a26