code: def add_result(self, run, result, split="valid"):
      assert run >= 0 and run < len(self.results["valid"])
      assert split in ["valid", "test"]
      self.results[split][run].append(result)
  
file_path: dgl/examples/pytorch/ogb/ngnn_seal/utils.py
imports: import random
  import sys
  import numpy
  import torch
  from dgl.sampling import global_uniform_negative_sampling
  from scipy.sparse.csgraph import shortest_path
label_desc: Use image node_id 2 for calling the Logger obj's underlying member method code with example usage: obj.add_result(run, result, split) without return types