code: def test_pytest_configure_warning(
      pytester: Pytester, recwarn
  ) -> None:
      """Issue 5115."""
      pytester.makeconftest(
          """
          def pytest_configure():
              import warnings
  
              warnings.warn("from pytest_configure")
          """
      )
  
      result = pytester.runpytest()
      assert result.ret == 5
      assert "INTERNALERROR" not in result.stderr.str()
      warning = recwarn.pop()
      assert str(warning.message) == "from pytest_configure"
  
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 21 for calling a global function with example usage: test_pytest_configure_warning(pytester, recwarn) without return types