code: def setup_printing():
      """
      Set up printing options
  
      """
      logging.root.handlers = []
      logging_cfg = {"level": logging.INFO, "format": "%(message)s"}
      makedirs(cfg.run_dir)
      h_file = logging.FileHandler("{}/logging.log".format(cfg.run_dir))
      h_stdout = logging.StreamHandler(sys.stdout)
      if cfg.print == "file":
          logging_cfg["handlers"] = [h_file]
      elif cfg.print == "stdout":
          logging_cfg["handlers"] = [h_stdout]
      elif cfg.print == "both":
          logging_cfg["handlers"] = [h_file, h_stdout]
      else:
          raise ValueError("Print option not supported")
      logging.basicConfig(**logging_cfg)
  
imports: import logging
  import math
  import sys
  import torch
  import graphgym.register
  from graphgym.config import cfg
  from graphgym.utils.device import get_current_gpu_usage
  from graphgym.utils.io import dict_to_json, dict_to_tb, makedirs
label_desc: Use image node_id 1 for calling a global function with example usage: setup_printing() without return types