code: def get_modules(top_modules):
      modules = []
      for module in sys.modules.keys():
          for doc_module in top_modules:
              if (
                  module.startswith(doc_module)
                  and not module.endswith("hidden")
                  and not _is_private(module)
              ):
                  modules += [module]
      return sorted(modules)
  
file_path: DALI/docs/autodoc_submodules.py
imports: import nvidia.dali.plugin.pytorch
  import nvidia.dali.plugin.numba
  import inspect
  import sys
  import operations_table
label_desc: Use image node_id 2 for calling a global function with example usage: get_modules(top_modules) and returns: sorted