code: def _generate_case(base, module, cls_name, mb, method_generator):
      members = mb.copy()
      base_methods = inspect.getmembers(
          base, predicate=inspect.isfunction
      )
      for name, value in base_methods:
          if not name.startswith("test_"):
              continue
          value = method_generator(value)
          # If the return value of method_generator is None, None is assigned
          # as the value of the test method and it is ignored by pytest.
          members[name] = value
  
      cls = type(cls_name, (base,), members)
  
      # Add new test class to module
      cls.__module__ = module.__name__
      setattr(module, cls_name, cls)
  
label_desc: Use image node_id 2 for calling a global function with example usage: _generate_case(base, module, cls_name, mb, method_generator) without return types