code: def emit(self, record: Any) -> None:
      try:
          msg = self.format(record)
          tqdm.write(msg)
          self.flush()
      except (KeyboardInterrupt, SystemExit):
          raise
      except Exception:
          self.handleError(record)
  
file_path: optuna/optuna/progress_bar.py
imports: from __future__ import annotations
  import logging
  from typing import Any
  from typing import TYPE_CHECKING
  import warnings
  from tqdm.auto import tqdm
  from optuna import logging
label_desc: Use image node_id 1 for calling the _TqdmLoggingHandler obj's underlying member method code with example usage: obj.emit(record) without return types