code: def test_log_disabling_works_with_log_cli(pytester: Pytester) -> None:
      pytester.makepyfile(
          """
      import logging
      disabled_log = logging.getLogger('disabled')
      test_log = logging.getLogger('test')
  
      def test_log_cli_works(caplog):
          test_log.info("Visible text!")
          disabled_log.warning("This string will be suppressed.")
      """
      )
      result = pytester.runpytest(
          "--log-cli-level=DEBUG",
          "--log-disable=disabled",
      )
      assert result.ret == ExitCode.OK
      result.stdout.fnmatch_lines(
          "INFO     test:test_log_disabling_works_with_log_cli.py:6 Visible text!"
      )
      result.stdout.no_fnmatch_line(
          "WARNING  disabled:test_log_disabling_works_with_log_cli.py:7 This string will be suppressed."
      )
      assert not result.stderr.lines
  
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 36 for calling a global function with example usage: test_log_disabling_works_with_log_cli(pytester) without return types