code: def test_log_level_not_changed_by_default(pytester: Pytester) -> None:
      pytester.makepyfile(
          """
          import logging
          def test_log_file():
              assert logging.getLogger().level == logging.WARNING
      """
      )
      result = pytester.runpytest("-s")
      result.stdout.fnmatch_lines(["* 1 passed in *"])
  
imports: import io
  import os
  import re
  from typing import cast
  import pytest
  from _pytest.capture import CaptureManager
  from _pytest.config import ExitCode
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import Pytester
  from _pytest.terminal import TerminalReporter
label_desc: Use image node_id 18 for calling a global function with example usage: test_log_level_not_changed_by_default(pytester) without return types