def METHOD_NAME(self, globals_):
    with self.mock_modules('pkg.__init__', 'pkg.fake') as importer:
        with util.import_state(meta_path=[importer]):
            self.__import__('pkg.fake')
            module = self.__import__('',
                                     globals=globals_,
                                     fromlist=['attr'], level=2)
    return module