code: def test_gitrunner_list() -> None:
      # Expect GitRunner._get_chunked_results() to return generators,
      # if the protocol is a subclass of GeneratorMixIn, and expect
      # run_on_filelist_chunks_items_ to yield elements from
      # all generators returned by GitRunner._get_chunked_results().
      git_runner = GitWitlessRunner(["a", "b", "c"])
      with patch.object(git_runner, "_get_chunked_results") as get_mock:
          get_mock.return_value = ({"a": 1, "b": 2}, {"a": 3, "b": 4})
          result = git_runner.run_on_filelist_chunks(
              ["a", "b", "c"],
              ["f1.txt", "f2.txt"],
              protocol=StdOutErrCapture,
          )
          assert_equal(result, {"a": 4, "b": 6})
  
file_path: datalad/datalad/runner/tests/test_gitrunner.py
imports: from __future__ import annotations
  from unittest.mock import patch
  from datalad.runner.coreprotocols import StdOutErrCapture
  from datalad.runner.protocol import GeneratorMixIn
  from datalad.tests.utils_pytest import assert_equal
  from ..gitrunner import GitWitlessRunner
label_desc: Use image node_id 2 for calling a global function with example usage: test_gitrunner_list() without return types