code: def test_tutorial(clear_sqlmodel):
      from docs_src.tutorial.relationship_attributes.back_populates import (
          tutorial001_py39 as mod,
      )
  
      mod.sqlite_url = "sqlite://"
      mod.engine = create_engine(mod.sqlite_url)
      calls = []
  
      new_print = get_testing_print_function(calls)
  
      with patch("builtins.print", new=new_print):
          with pytest.warns(SAWarning):
              mod.main()
      assert calls == expected_calls
  
imports: from unittest.mock import patch
  import pytest
  from sqlalchemy.exc import SAWarning
  from sqlmodel import create_engine
  from ....conftest import get_testing_print_function, needs_py39
label_desc: Use image node_id 1 for calling a global function with example usage: test_tutorial(clear_sqlmodel) without return types