code: def reporthook(t):
      """https://github.com/tqdm/tqdm"""
      last_b = [0]
  
      def inner(b=1, bsize=1, tsize=None):
          """
          b: int, optionala
          Number of blocks just transferred [default: 1].
          bsize: int, optional
          Size of each block (in tqdm units) [default: 1].
          tsize: int, optional
          Total size (in tqdm units). If [default: None] remains unchanged.
          """
          if tsize is not None:
              t.total = tsize
          t.update((b - last_b[0]) * bsize)
          last_b[0] = b
  
      return inner
  
label_desc: Use image node_id 1 for calling a global function with example usage: reporthook(t) and returns: inner