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