code: def test_progress_function_w_kwargs(client, capsys):
      f = client.submit(lambda: 1)
      g = client.submit(lambda: 2)
  
      progress(f, interval="20ms", loop=client.loop)
      check_bar_completed(capsys)
  
file_path: distributed/distributed/diagnostics/tests/test_progressbar.py
imports: from __future__ import annotations
  from time import sleep
  import pytest
  from tornado.ioloop import IOLoop
  from distributed.diagnostics.progressbar import TextProgressBar, progress
  from distributed.metrics import time
  from distributed.utils_test import div, gen_cluster, inc
label_desc: Use image node_id 4 for calling a global function with example usage: test_progress_function_w_kwargs(client, capsys) without return types