code: def test_add_template_test_with_name_and_template(app, client):
      def is_boolean(value):
          return isinstance(value, bool)
  
      app.add_template_test(is_boolean, "boolean")
  
      @app.route("/")
      def index():
          return flask.render_template(
              "template_test.html", value=False
          )
  
      rv = client.get("/")
      assert b"Success!" in rv.data
  
imports: import logging
  import pytest
  import werkzeug.serving
  from jinja2 import TemplateNotFound
  from markupsafe import Markup
  import flask
label_desc: Use image node_id 25 for calling a global function with example usage: test_add_template_test_with_name_and_template(app, client) and returns: isinstance, flask