code: def test_progress_function_warns(client):
      with pytest.warns(
          DeprecationWarning, match="`func` is deprecated"
      ):
          progress(None, func="prefix")
  
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 5 for calling a global function with example usage: test_progress_function_warns(client) without return types