code: def get_class_info(exp, handle_bool=True):
      if isinstance(exp, dict):
          return exp["name"], exp["args"]
      if exp.find("(") == -1:
          return exp, {}
  
      def foo(**kwargs):
          return kwargs
  
      if handle_bool:
          exp = exp.replace("=true", "=True").replace(
              "=false", "=False"
          )  # safe to assume
          exp = exp.replace(" true", " True").replace(
              " false", " False"
          )
      class_path = exp[: exp.find("(")]
      class_args = (
          exp[exp.find("(") + 1 : -1] if exp.find("(") >= 0 else None
      )
  
      logger.debug(f"Eval Input:: {class_path} => {class_args}")
      class_args = (
          eval("foo(" + class_args + ")") if class_args else None
      )
  
      logger.debug(f"{class_path} => {class_args}")
      return class_path, class_args
  
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 8 for calling a global function with example usage: get_class_info(exp, handle_bool) and returns: class_path,  class_args, exp,  exp, exp,  dict, kwargs