<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_modules(self, name):
 """Return the list of modules that have global `name`"""

        result = []
        for module in self.names:
            if name in self.names[module]:
                result.append(module)
        return result