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