[JIT] Fix module interface test (#39592)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/39592
Test Plan: Imported from OSS
Differential Revision: D21909659
Pulled By: jamesr66a
fbshipit-source-id: 831ae6b158041d4241209cee50f7a4d09cd2fcb2