class_docstr: Dummy file-like that will write to tqdm
class_docstr_tok: ["Dummy","file-like","that","will","write","to","tqdm"]
code: def write(self, line):
      if self._carriage_pending:
          line = self.prefix + line
          self._carriage_pending = False
  
      if line.endswith("\r"):
          self._carriage_pending = True
          line = line[:-1] + "\n"
  
      tqdm.tqdm.write(line, file=self.file, end="")
  
file_path: caliban/caliban/util/tqdm.py
imports: import contextlib
  import sys
  from absl import logging
  from blessings import Terminal
  import tqdm
  from tqdm.utils import _term_move_up
label_desc: Use image node_id 2 for calling the TqdmFile obj's underlying member method code with example usage: obj.write(line) without return types