code: def test_pytester_makefile_dot_prefixes_extension_with_warning(
      pytester: Pytester,
  ) -> None:
      with pytest.raises(
          ValueError,
          match="pytester.makefile expects a file extension, try .foo.bar instead of foo.bar",
      ):
          pytester.makefile("foo.bar", "")
  
imports: import os
  import subprocess
  import sys
  import time
  from types import ModuleType
  from typing import List
  import _pytest.pytester
  import pytest
  from _pytest.config import ExitCode
  from _pytest.config import PytestPluginManager
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import HookRecorder
  from _pytest.pytester import LineMatcher
  from _pytest.pytester import Pytester
  from _pytest.pytester import SysModulesSnapshot
  from _pytest.pytester import SysPathsSnapshot
label_desc: Use image node_id 35 for calling a global function with example usage: test_pytester_makefile_dot_prefixes_extension_with_warning(pytester) without return types