code: def test_auto_graph_compile(
      caplog: LogCaptureFixture,
  ) -> Iterable[None]:
      yield
  
      for when in ["setup", "call", "teardown"]:
          # Type ignore below is because `when` should have type
          # `Literal['setup', 'call', 'teardown']`. We should be able to remove this when we no longer
          # need to support Python 3.7.
          for record in caplog.get_records(when):  # type: ignore[arg-type]
              assert not record.msg.startswith(
                  "AutoGraph could not transform"
              ), record.getMessage()
  
imports: from typing import Iterable
  import pytest
  from _pytest.logging import LogCaptureFixture
  from check_shapes.config import DocstringFormat, ShapeCheckingState, get_enable_check_shapes, get_enable_function_call_precompute, get_rewrite_docstrings, set_enable_check_shapes, set_enable_function_call_precompute, set_rewrite_docstrings
label_desc: Use image node_id 1 for calling a global function with example usage: test_auto_graph_compile(caplog) without return types