code: def get_class_names(p, subclass=None) -> List[str]:
      logger = logging.getLogger(__name__)
  
      result = []
      logger.debug(f"Module File Path: {p.__file__}")
  
      if os.path.basename(p.__file__).startswith("__"):
          current_dir = os.path.dirname(p.__file__)
          current_module_name = p.__package__
  
          for file in glob.glob(current_dir + "/*.py*"):
              name = os.path.splitext(os.path.basename(file))[0]
              if name.startswith("__"):
                  continue
  
              module = importlib.import_module(
                  "." + name, package=current_module_name
              )
              for m in dir(module):
                  c = getattr(module, m)
                  if not c or inspect.isabstract(c):
                      continue
                  if (
                      inspect.isclass(c)
                      and c.__module__ == module.__name__
                      and (
                          not subclass
                          or is_subclass(c.__name__, c, subclass)
                      )
                  ):
                      result.append(c.__module__ + "." + c.__name__)
  
      else:
          for m in dir(p):
              c = getattr(p, m)
              if not c or inspect.isabstract(c):
                  continue
              if (
                  inspect.isclass(c)
                  and c.__module__ == p.__name__
                  and (
                      not subclass
                      or is_subclass(c.__name__, c, subclass)
                  )
              ):
                  result.append(c.__module__ + "." + c.__name__)
  
      return result
  
file_path: MONAILabel/monailabel/utils/others/class_utils.py
imports: import glob
  import importlib.util
  import inspect
  import logging
  import os
  import sys
  from distutils.util import strtobool
  from typing import List
  from monailabel.interfaces.exception import MONAILabelError, MONAILabelException
label_desc: Use image node_id 11 for calling a global function with example usage: get_class_names(p, subclass) and returns: result