<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_imported_modules(self, module):
 """Returns the list of modules imported from `module`."""

    for name, member in inspect.getmembers(module):
      if inspect.ismodule(member):
        yield name, member