code: def test_name_undefined(env):
      with pytest.raises(
          TemplateAssertionError, match="No test named 'f'"
      ):
          env.from_string("{{ x is f }}")
  
imports: import pytest
  from markupsafe import Markup
  from jinja2 import Environment
  from jinja2 import TemplateAssertionError
  from jinja2 import TemplateRuntimeError
label_desc: Use image node_id 1 for calling a global function with example usage: test_name_undefined(env) without return types