code: def test_config_cache(self, pytester: Pytester) -> None:
      pytester.makeconftest(
          """
              def pytest_configure(config):
                  # see that we get cache information early on
                  assert hasattr(config, "cache")
          """
      )
      pytester.makepyfile(
          """
              def test_session(pytestconfig):
                  assert hasattr(pytestconfig, "cache")
          """
      )
      result = pytester.runpytest()
      assert result.ret == 0
      result.stdout.fnmatch_lines(["*1 passed*"])
  
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 7 for calling the TestNewAPI obj's underlying member method code with example usage: obj.test_config_cache(pytester) without return types