code: def create_dummy_estimator(name, reason):
      assert isinstance(reason, str)
      DummyEstimator = type(
          name,
          (object,),
          {
              # constructor
              "__init__": _dummy_constructor,
              # data members
              "reason": reason,
          },
      )
      return DummyEstimator
  
file_path: gluon-cv/gluoncv/auto/estimators/utils.py
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: create_dummy_estimator(name, reason) and returns: DummyEstimator