code: def test_loop_filter(self, test_env_async):
      tmpl = test_env_async.from_string(
          "{% for item in range(10) if item is even %}[{{ item }}]{% endfor %}"
      )
      assert tmpl.render() == "[0][2][4][6][8]"
      tmpl = test_env_async.from_string(
          """
              {%- for item in range(10) if item is even %}[{{
                  loop.index }}:{{ item }}]{% endfor %}"""
      )
      assert tmpl.render() == "[1:0][2:2][3:4][4:6][5:8]"
  
imports: import asyncio
  import pytest
  from jinja2 import DictLoader
  from jinja2 import Environment
  from jinja2 import Template
  from jinja2.asyncsupport import auto_aiter
  from jinja2.exceptions import TemplateNotFound
  from jinja2.exceptions import TemplatesNotFound
  from jinja2.exceptions import UndefinedError
label_desc: Use image node_id 18 for calling the TestAsyncForLoop obj's underlying member method code with example usage: obj.test_loop_filter(test_env_async) without return types