code: def get_logger(name):
      logger = logging.getLogger(name)
      # ch = logging.StreamHandler()
      logger.setLevel(level=os.environ.get("PT_LOGLEVEL", "INFO"))
      formatter = logging.Formatter(
          "%(asctime)s - {%(name)s:%(lineno)d} - %(levelname)s - %(message)s"
      )
      if not logger.hasHandlers():
          ch = RichHandler(
              show_level=False,
              show_time=False,
              show_path=False,
              rich_tracebacks=True,
          )
          ch.setLevel(logging.DEBUG)
          ch.setFormatter(formatter)
          logger.addHandler(ch)
          logger.propagate = False
      return logger
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_logger(name) and returns: logger