code: def iter_namespace(ns_pkg):
      # Specifying the second argument (prefix) to iter_modules makes the
      # returned name an absolute name instead of a relative one. This allows
      # import_module to work without having to do additional modification to
      # the name.
      return pkgutil.iter_modules(
          ns_pkg.__path__, ns_pkg.__name__ + "."
      )
  
file_path: pelican/pelican/plugins/_utils.py
imports: import importlib
  import importlib.machinery
  import importlib.util
  import inspect
  import logging
  import pkgutil
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: iter_namespace(ns_pkg) and returns: pkgutil