code: def __init__(self, recorder_filename):
      # init the recorder
      self.recorder_filename = recorder_filename
      if os.path.isfile(recorder_filename):
          with open(recorder_filename, "r") as f:
              self.recorder = json.load(f)
      else:
          self.recorder = {}
          check_dir(os.path.dirname(recorder_filename))
  
file_path: DIG/benchmarks/xgraph/utils.py
imports: import json
  import os
  import torch
  import random
  import numpy
  from abc import ABC
  from torch_geometric.data import Data
label_desc: Use image node_id 1 to create a new Recorder object from inherited base classes: ABC with example: obj = Recorder(recorder_filename)