code: def test_add_template_test_with_name(app):
      def is_boolean(value):
          return isinstance(value, bool)
  
      app.add_template_test(is_boolean, "boolean")
      assert "boolean" in app.jinja_env.tests.keys()
      assert app.jinja_env.tests["boolean"] == is_boolean
      assert app.jinja_env.tests["boolean"](False)
  
imports: import logging
  import pytest
  import werkzeug.serving
  from jinja2 import TemplateNotFound
  from markupsafe import Markup
  import flask
label_desc: Use image node_id 21 for calling a global function with example usage: test_add_template_test_with_name(app) and returns: isinstance