code: def test_add_template_filter_with_name_and_template(app, client):
      def my_reverse(s):
          return s[::-1]
  
      app.add_template_filter(my_reverse, "super_reverse")
  
      @app.route("/")
      def index():
          return flask.render_template(
              "template_filter.html", value="abcd"
          )
  
      rv = client.get("/")
      assert rv.data == b"dcba"
  
imports: import logging
  import pytest
  import werkzeug.serving
  from jinja2 import TemplateNotFound
  from markupsafe import Markup
  import flask
label_desc: Use image node_id 17 for calling a global function with example usage: test_add_template_filter_with_name_and_template(app, client) and returns: s, flask