class_docstr: A custom logger to log stdout to a logging file.
class_docstr_tok: ["A","custom","logger","to","log","stdout","to","a","logging","file","."]
code: def write(self, s):
      with open(self.path, "a") as f:
          f.write(str(s))
      print(s)
      return
  
file_path: dgl/examples/pytorch/graphsaint/utils.py
imports: import json
  import os
  from functools import namedtuple
  import dgl
  import numpy
  import scipy.sparse
  import torch
  from sklearn.metrics import f1_score
  from sklearn.preprocessing import StandardScaler
label_desc: Use image node_id 2 for calling the Logger obj's underlying member method code with example usage: obj.write(s) without return types