code: def test_not_exported(self, test_env):
      t = test_env.from_string(
          "{% from 'module' import nothing %}{{ nothing() }}"
      )
  
      with pytest.raises(
          UndefinedError, match="does not export the requested name"
      ):
          t.render()
  
imports: import pytest
  from jinja2.environment import Environment
  from jinja2.exceptions import TemplateNotFound
  from jinja2.exceptions import TemplatesNotFound
  from jinja2.exceptions import TemplateSyntaxError
  from jinja2.exceptions import UndefinedError
  from jinja2.loaders import DictLoader
label_desc: Use image node_id 6 for calling the TestImports obj's underlying member method code with example usage: obj.test_not_exported(test_env) without return types