class_docstr: Scan all the available classes and functions in the MONAI package and map them with the module paths in a table.
  It's used to locate the module path for provided component name.
  
  Args:
      excludes: if any string of the `excludes` exists in the full module name, don't import this module.
class_docstr_tok: ["Scan","all","the","available","classes","and","functions","in","the","MONAI","package","and","map","them","with","the","module","paths","in","a","table",".","It","'s","used","to","locate","the","module","path","for","provided","component","name",".","Args",":","excludes",":","if","any","string","of","the","`","excludes","`","exists","in","the","full","module","name",",","do","n't","import","this","module","."]
docstr: Find all the classes and functions in the modules with specified `modnames`.
  
  Args:
      modnames: names of the target modules to find all the classes and functions.
code: def _find_classes_or_functions(
      self, modnames: Sequence[str] | str
  ) -> dict[str, list]:
      """
      Find all the classes and functions in the modules with specified `modnames`.
  
      Args:
          modnames: names of the target modules to find all the classes and functions.
  
      """
      table: dict[str, list] = {}
      # all the MONAI modules are already loaded by `load_submodules`
      for modname in ensure_tuple(modnames):
          try:
              # scan all the classes and functions in the module
              module = import_module(modname)
              for name, obj in inspect.getmembers(module):
                  if (
                      inspect.isclass(obj) or inspect.isfunction(obj)
                  ) and obj.__module__ == modname:
                      if name not in table:
                          table[name] = []
                      table[name].append(modname)
          except ModuleNotFoundError:
              pass
      return table
  
imports: from __future__ import annotations
  import ast
  import inspect
  import sys
  import warnings
  from abc import ABC, abstractmethod
  from collections.abc import Mapping, Sequence
  from importlib import import_module
  from pprint import pformat
  from typing import Any
  from monai.bundle.utils import EXPR_KEY
  from monai.utils import CompInitMode, ensure_tuple, first, instantiate, optional_import, run_debug, run_eval
label_desc: Use image node_id 3 for calling the ComponentLocator obj's underlying member method code with example usage: obj._find_classes_or_functions(modnames) and returns: table