code: def set_size(self, size):
      # Tqdm tries to be smart when to refresh,
      # so we try to force it to re-render.
      super().set_size(size)
      self.progress_bar.refresh()
  
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 5 for calling the TqdmCallback obj's underlying member method code with example usage: obj.set_size(size) without return types