code: def __init__(
      self,
      size: Optional[int] = None,
      value: int = 0,
      progress: Optional["RichTransferProgress"] = None,
      desc: Optional[str] = None,
      bytes: bool = False,  # noqa: A002
      unit: Optional[str] = None,
      disable: bool = False,
      transient: bool = True,
  ) -> None:
      self._progress = progress
      self.disable = disable
      self._task_kwargs = {
          "description": desc or "",
          "bytes": bytes,
          "unit": unit,
          "total": size or 0,
          "visible": False,
          "progress_type": None if bytes else "summary",
      }
      self._transient = transient
      self._stack = ExitStack()
      super().__init__(size=size, value=value)
  
imports: from contextlib import ExitStack
  from typing import TYPE_CHECKING, Any, BinaryIO, Dict, Optional, Union
  from dvc.progress import Tqdm
  from dvc.utils.objects import cached_property
  from dvc_objects.fs.callbacks import DEFAULT_CALLBACK, Callback
label_desc: Use image node_id 1 to create a new RichCallback object from inherited base classes: Callback with example: obj = RichCallback(size, value, progress, desc, bytes, unit, disable, transient)