code: def test_distributed_tqdm_iterator():
      mgr = tqdm_ray.instance()
      mgr.bar_groups.clear()
  
      assert sum(
          tqdm_ray.tqdm(range(100), desc="baz", flush_interval_s=0)
      ) == sum(range(100))
      wait_for_condition(lambda: len(mgr.bar_groups) == 1)
      assert len(mgr.bar_groups) == 1
      bar_group = list(mgr.bar_groups.values())[0]
      assert len(bar_group.bars_by_uuid) == 1
      bar = list(bar_group.bars_by_uuid.values())[0]
      assert bar.bar.n == 100, bar.bar.n
      assert "baz" in bar.bar.desc, bar.bar.desc
  
file_path: ray/python/ray/tests/test_tqdm.py
imports: import os
  import sys
  import time
  import pytest
  import ray
  from ray.experimental import tqdm_ray
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 3 for calling a global function with example usage: test_distributed_tqdm_iterator() without return types