code: def get_class_object(method_name, *args, **kwargs):
      # from https://www.bnmetrics.com/blog/factory-pattern-in-python3-simple-version
      try:
          module_name = method_name
          class_name = string.capwords(method_name, "_").replace(
              "_", ""
          )
  
          interpreter_module = import_module(
              "." + module_name, package="dowhy.interpreters"
          )
          interpreter_class = getattr(interpreter_module, class_name)
          assert issubclass(interpreter_class, Interpreter)
  
      except (AttributeError, AssertionError, ImportError):
          raise ImportError(
              "{} is not an existing interpreter.".format(method_name)
          )
      return interpreter_class
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_class_object(method_name) and returns: interpreter_class