code: def iterate_imported_modules(globs):
      checked_modules = set(MODULE_BLACKLIST)
      for glob in globs.values():
          if isinstance(glob, module):
              mod_path = glob.__name__
          elif hasattr(glob, "__module__"):
              mod_path = glob.__module__
          else:
              continue  # pragma: no cover
  
          if not mod_path:
              continue
  
          for modname in iter_prefixes(mod_path):
              if modname in checked_modules:
                  continue
              checked_modules.add(modname)
              mod = sys.modules.get(modname)
              if mod is not None:
                  yield modname, mod
  
imports: import functools
  import hashlib
  import os.path
  import re
  import sys
  from pathlib import Path
  import pkg_resources
  import sacred.optional
  from sacred import SETTINGS
  from sacred.utils import iter_prefixes
label_desc: Use image node_id 7 for calling a global function with example usage: iterate_imported_modules(globs) without return types