code: def logging_during_setup_and_teardown(
      caplog: pytest.LogCaptureFixture,
  ) -> Iterator[None]:
      caplog.set_level("INFO")
      logger.info("a_setup_log")
      yield
      logger.info("a_teardown_log")
      assert [x.message for x in caplog.get_records("teardown")] == [
          "a_teardown_log"
      ]
  
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 17 for calling a global function with example usage: logging_during_setup_and_teardown(caplog) without return types