code: def cleanup_disabled_logging() -> Iterator[None]:
      """Simple fixture that ensures that a test doesn't disable logging.
  
      This is necessary because ``logging.disable()`` is global, so a test disabling logging
      and not cleaning up after will break every test that runs after it.
  
      This behavior was moved to a fixture so that logging will be un-disabled even if the test fails an assertion.
      """
      yield
      logging.disable(logging.NOTSET)
  
imports: import logging
  from typing import Iterator
  import pytest
  from _pytest.logging import caplog_records_key
  from _pytest.pytester import Pytester
label_desc: Use image node_id 1 for calling a global function with example usage: cleanup_disabled_logging() without return types