Fix IMethodTest.GetArgumentNames after D29648756 (#61985)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61985
Fix IMethodTest.GetArgumentNames after D29648756 (https://github.com/pytorch/pytorch/commit/641f6ef8a781aeb118f9d06ba6b654cce571f2c0).
ghstack-source-id: 134054637
Test Plan: buck test mode/dev caffe2/test/cpp/api:imethod -- IMethodTest.GetArgumentNames
Reviewed By: suo
Differential Revision: D29828807
fbshipit-source-id: b1411745b91e1b8c0ea0fd9e9666e22125dde333