code: def test_progressbar_parallel_basic(capsys):
      """Test ProgressBar with parallel computing, basic version."""
      assert capsys.readouterr().out == ""
      parallel, p_fun, _ = parallel_func(
          _identity, total=10, n_jobs=1, verbose=True
      )
      with use_log_level(True):
          out = parallel(p_fun(x) for x in range(10))
      assert out == list(range(10))
      cap = capsys.readouterr()
      out = cap.err
      assert "100%" in out
  
file_path: mne-python/mne/utils/tests/test_progressbar.py
imports: from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from mne.parallel import parallel_func
  from mne.utils import ProgressBar, array_split_idx, catch_logging, use_log_level
label_desc: Use image node_id 3 for calling a global function with example usage: test_progressbar_parallel_basic(capsys) without return types