code: def dump_data(data, level=logging.DEBUG):
      if data and logging.getLogger().level == level:
          logger.log(
              level,
              "**************************** DATA ********************************************",
          )
          for k in data:
              v = data[k]
              logger.log(
                  level,
                  "Data key: {} = {}".format(
                      k,
                      v.shape
                      if hasattr(v, "shape")
                      else v
                      if type(v)
                      in (int, float, bool, str, dict, tuple, list)
                      else type(v),
                  ),
              )
          logger.log(
              level,
              "******************************************************************************",
          )
  
imports: import logging
  import time
  from monai.transforms import Compose
  from monailabel.interfaces.exception import MONAILabelError, MONAILabelException
label_desc: Use image node_id 1 for calling a global function with example usage: dump_data(data, level) without return types