class_docstr: maximum-compatibility tqdm-based progressbars
class_docstr_tok: ["maximum-compatibility","tqdm-based","progressbars"]
code: def as_callback(self) -> "TqdmCallback":
      from dvc.fs.callbacks import TqdmCallback
  
      return TqdmCallback(progress_bar=self)
  
file_path: dvc/dvc/progress.py
imports: import logging
  import sys
  from threading import RLock
  from typing import TYPE_CHECKING
  from tqdm import tqdm
  from dvc.env import DVC_IGNORE_ISATTY
  from dvc.utils import env2bool
label_desc: Use image node_id 8 for calling the Tqdm obj's underlying member method code with example usage: obj.as_callback() and returns: TqdmCallback