code: def __init__(self, log_path, cuda=False, debug=False):
      self.logger = logging.getLogger(__name__)
      self.cuda = cuda
      self.log_path = log_path
      self.debug = debug
  
imports: import logging
  import torch.distributed
label_desc: Use image node_id 1 to create a new Logger object  with example: obj = Logger(log_path, cuda, debug)