code: def test_loops(env):
      t = env.from_string("{% for x in value %}{{ x }}{% endfor %}")
      result = t.render(value=["a", "b", "c", "d"])
      assert isinstance(result, text_type)
      assert result == "abcd"
  
imports: import pytest
  from jinja2._compat import text_type
  from jinja2.exceptions import UndefinedError
  from jinja2.nativetypes import NativeEnvironment
  from jinja2.nativetypes import NativeTemplate
  from jinja2.runtime import Undefined
label_desc: Use image node_id 8 for calling a global function with example usage: test_loops(env) without return types