code: def log(self, **kwargs):
      self._csv.writerow(
          [
              parse_format % kwargs[attr_name]
              for attr_name, parse_format in self._attr_format_dict.items()
          ]
      )
      self._file.flush()
  
file_path: dgl/examples/pytorch/gcmc/utils.py
imports: import csv
  import re
  from collections import OrderedDict
  import numpy
  import torch
  import torch.nn
  import torch.optim
label_desc: Use image node_id 2 for calling the MetricLogger obj's underlying member method code with example usage: obj.log() without return types