class_docstr: Write log immediately to the disk
code: def write(self, content):
      self.f.write(content)
      self.f.flush()
      os.fsync(self.fid)
  
file_path: auptimizer/src/aup/compression/torch/pruning/amc/lib/utils.py
imports: import os
  import torch
label_desc: Use image node_id 3 for calling the TextLogger obj's underlying member method code with example usage: obj.write(content) without return types