Remove deprecated import_module hub function (#74428)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/74428
Test Plan: Imported from OSS
Reviewed By: anjali411
Differential Revision: D35011901
Pulled By: NicolasHug
fbshipit-source-id: 444912e695a1bdf3d4f314957ca44a9fab428163
(cherry picked from commit 8836e17e84bb827e5e73ef651c2da048ecdf2485)