code: def json_to_dict_list(fname):
      dict_list = []
      epoch_set = set()
      with open(fname) as f:
          lines = f.readlines()
          for line in lines:
              line = line.rstrip()
              dict = json.loads(line)
              if dict["epoch"] not in epoch_set:
                  dict_list.append(dict)
              epoch_set.add(dict["epoch"])
      return dict_list
  
file_path: pytorch_geometric/torch_geometric/graphgym/utils/io.py
imports: import ast
  import json
  import os
  import os.path
  from torch_geometric.io import fs
label_desc: Use image node_id 4 for calling a global function with example usage: json_to_dict_list(fname) and returns: dict_list