code: def set_up_logging(rank, log_level="DEBUG"):
      if rank < 0:
          message_header = "[[bold green blink] Main [/]]"
      else:
          message_header = f"[[bold green blink]Rank:{rank}[/]]"
  
      logging.config.dictConfig(
          dict(
              version=1,
              formatters={
                  "with_rank": {
                      "format": f"{message_header} %(message)s",
                      "datefmt": "[%X]",
                  }
              },
              handlers={
                  "base": {
                      "class": "rich.logging.RichHandler",
                      "level": log_level,
                      "filters": [],
                      "formatter": "with_rank",
                      "tracebacks_show_locals": True,
                      "markup": True,
                  }
              },
              loggers={},
              root=dict(handlers=["base"], level=log_level),
              disable_existing_loggers=False,
          )
      )
      if rank < 0:
          from rich.traceback import install
          import click
  
          install(suppress=[click])
  
label_desc: Use image node_id 1 for calling a global function with example usage: set_up_logging(rank, log_level) without return types