class_docstr: Write log immediately to the disk
code: def __init__(self, filepath):
      self.f = open(filepath, "w")
      self.fid = self.f.fileno()
      self.filepath = filepath
  
file_path: auptimizer/src/aup/compression/torch/pruning/amc/lib/utils.py
imports: import os
  import torch
label_desc: Use image node_id 1 to create a new TextLogger object from inherited base classes: object with example: obj = TextLogger(filepath)