code: def test_cache_reportheader(
      env, pytester: Pytester, monkeypatch: MonkeyPatch
  ) -> None:
      pytester.makepyfile("""def test_foo(): pass""")
      if env:
          monkeypatch.setenv(*env)
          expected = os.path.join(env[1], ".pytest_cache")
      else:
          monkeypatch.delenv("TOX_ENV_DIR", raising=False)
          expected = ".pytest_cache"
      result = pytester.runpytest("-v")
      result.stdout.fnmatch_lines(["cachedir: %s" % expected])
  
imports: import os
  import shutil
  from pathlib import Path
  from typing import Generator
  from typing import List
  import pytest
  from _pytest.config import ExitCode
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
  from _pytest.tmpdir import TempPathFactory
label_desc: Use image node_id 1 for calling a global function with example usage: test_cache_reportheader(env, pytester, monkeypatch) without return types