code: def check_module(module, name):
      if hasattr(module, "do_not_check"):
          return
      assert (
          name == module.module_name
      ), "Module %s should have module_name %s (is %s)" % (
          name,
          name,
          module.module_name,
      )
      for method_name in do_not_override:
          assert getattr(module, method_name) == getattr(
              Module, method_name
          ), "Module %s should not override method %s" % (
              name,
              method_name,
          )
      for method_name in should_override:
          assert getattr(module, method_name) != getattr(
              Module, method_name
          ), "Module %s should override method %s" % (name, method_name)
  
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 1 for calling a global function with example usage: check_module(module, name) without return types