code: def to_expression(class_path, class_args):
      key_val = []
      for key in class_args:
          val = class_args[key]
          if isinstance(val, str):
              val = f"'{val}'"
          elif isinstance(val, tuple) or isinstance(val, list):
              vals = []
              for v in val:
                  if isinstance(v, str):
                      v = f"'{v}'"
                  else:
                      v = str(v)
                  vals.append(v)
              if isinstance(val, tuple):
                  val = f"({', '.join(vals)})"
              else:
                  val = f"[{', '.join(vals)}]"
          else:
              val = str(val)
          key_val.append(f"{key}={val}")
      return f"{class_path}({', '.join(key_val)})"
  
file_path: MONAILabel/monailabel/utils/others/class_utils.py
imports: import glob
  import importlib.util
  import inspect
  import logging
  import os
  import sys
  from distutils.util import strtobool
  from typing import List
  from monailabel.interfaces.exception import MONAILabelError, MONAILabelException
label_desc: Use image node_id 6 for calling a global function with example usage: to_expression(class_path, class_args) and returns: class_path, str, str, str