code: def get_module_class(module_name):
      module_class = module_name.split(".")[-1]
      if module_class not in all_modules:
          if module_class in renamed_modules:
              return all_modules[renamed_modules[module_class]]
          if module_class in unimplemented_modules:
              raise ValueError(
                  (
                      "The %s module has not yet been implemented. "
                      "It will be available in a later version "
                      "of CellProfiler."
                  )
                  % module_class
              )
          if module_class in depricated_modules:
              raise ValueError(
                  (
                      "The %s module has been deprecated and will "
                      "not be implemented in CellProfiler 4.0."
                  )
                  % module_class
              )
          if module_class in replaced_modules:
              raise ValueError(
                  (
                      "The %s module no longer exists. You can find "
                      "similar functionality in: %s"
                  )
                  % (
                      module_class,
                      ", ".join(replaced_modules[module_class]),
                  )
              )
          raise ValueError(
              "Could not find the %s module" % module_class
          )
      return all_modules[module_class]
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/utilities/core/modules/__init__.py
imports: import logging
  import os
  import re
  import sys
  from ....module import Module
  from ....constants.modules import do_not_override, should_override, all_modules, svn_revisions, pymodules, badmodules, builtin_modules, renamed_modules, unimplemented_modules, depricated_modules, replaced_modules
  from ..plugins import load_plugins
label_desc: Use image node_id 5 for calling a global function with example usage: get_module_class(module_name) and returns: all_modules, all_modules