code: def set_printing():
      """Set up printing options."""
      logging.root.handlers = []
      logging_cfg = {"level": logging.INFO, "format": "%(message)s"}
      os.makedirs(cfg.run_dir, exist_ok=True)
      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 os
  import sys
  import time
  from typing import Any, Dict, Optional
  import torch
  from torch_geometric.graphgym import register
  from torch_geometric.graphgym.config import cfg
  from torch_geometric.graphgym.imports import Callback, pl
  from torch_geometric.graphgym.utils.device import get_current_gpu_usage
  from torch_geometric.graphgym.utils.io import dict_to_json, dict_to_tb
label_desc: Use image node_id 1 for calling a global function with example usage: set_printing() without return types