code: def get_metric(config):
      try:
          if "args" not in config:
              args = {}
          else:
              args = config["args"]
          if isinstance(args, dict):
              cls = eval(config["type"])(**args)
          else:
              cls = eval(config["type"])(args)
          return cls
      except:
          return None
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_metric(config) and returns: cls, None