code: def test_test(env: "Environment", value: str) -> bool:
      """Check if a test exists by name. Useful if a test may be
      optionally available.
  
      .. code-block:: jinja
  
          {% if 'loud' is test %}
              {% if value is loud %}
                  {{ value|upper }}
              {% else %}
                  {{ value|lower }}
              {% endif %}
          {% else %}
              {{ value }}
          {% endif %}
  
      .. versionadded:: 3.0
      """
      return value in env.tests
  
imports: import operator
  import typing
  from collections import abc
  from numbers import Number
  from .runtime import Undefined
  from .utils import pass_environment
label_desc: Use image node_id 7 for calling a global function with example usage: test_test(env, value) and returns: unknown