code: def __init__(self, rank=None):
      self.rank = rank
      self.metrics = {}
  
file_path: pytorch/benchmarks/distributed/rpc/parameter_server/metrics/MetricsLogger.py
imports: from .CPUMetric import CPUMetric
  from .CUDAMetric import CUDAMetric
label_desc: Use image node_id 1 to create a new MetricsLogger object  with example: obj = MetricsLogger(rank)