code: def test_tqdmparallel():
      with mock.patch(
          "tslumen.scheduling.Parallel", autospec=True
      ) as parallel:
          tq1 = TqdmParallel(n_jobs=53, progress_disable=True)
          assert tq1.progress_disable is True
          assert tq1.n_jobs == 53
          parallel.assert_not_called()
          tq1("fun", "args")
          parallel.assert_called_with(tq1, "fun", "args")
  
      tq2 = TqdmParallel(n_jobs=1, prefer="processes")
      res = tq2(
          (
              delayed(lambda x: x + 1)(
                  n,
              )
              for n in range(10)
          )
      )
      assert sorted(res) == list(range(1, 11))
  
imports: import mock
  from tslumen.scheduling import TqdmParallel, Scheduler, delayed
label_desc: Use image node_id 1 for calling a global function with example usage: test_tqdmparallel() without return types