code: def test_does_not_create_boilerplate_in_existing_dirs(
      pytester: Pytester,
  ) -> None:
      from _pytest.cacheprovider import Cache
  
      pytester.makeini(
          """
          [pytest]
          cache_dir = .
          """
      )
      config = pytester.parseconfig()
      cache = Cache.for_config(config, _ispytest=True)
      cache.set("foo", "bar")
  
      assert os.path.isdir("v")  # cache contents
      assert not os.path.exists(".gitignore")
      assert not os.path.exists("README.md")
  
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 6 for calling a global function with example usage: test_does_not_create_boilerplate_in_existing_dirs(pytester) without return types