code: def make_listener(progress: Progress, tid) -> Callable[[int], None]:
      total = 0
  
      def listen(delta: int):
          nonlocal total
          if delta > 0:
              total += delta
              progress.update(tid, total=total)
          else:
              progress.update(tid, advance=-delta)
  
      return listen
  
imports: from typing import Optional, Callable, Tuple, List
  from rich import filesize
  from rich.progress import MofNCompleteColumn, BarColumn, TextColumn, TimeRemainingColumn, TimeElapsedColumn, Progress, ProgressColumn, TaskProgressColumn, Task
  from rich.text import Text
label_desc: Use image node_id 1 for calling a global function with example usage: make_listener(progress, tid) and returns: listen