code: def test_warning_on_testpaths_not_found(pytester: Pytester) -> None:
      # Check for warning when testpaths set, but not found by glob
      pytester.makeini(
          """
          [pytest]
          testpaths = absent
          """
      )
      result = pytester.runpytest()
      result.stdout.fnmatch_lines(
          [
              "*ConfigWarning: No files were found in testpaths*",
              "*1 warning*",
          ]
      )
  
imports: import os
  import sys
  import warnings
  from typing import List
  from typing import Optional
  from typing import Tuple
  import pytest
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 22 for calling a global function with example usage: test_warning_on_testpaths_not_found(pytester) without return types