code: def test_await_and_macros():
      t = Template(
          "{% macro foo(x) %}[{{ x }}][{{ async_func() }}]{% endmacro %}{{ foo(42) }}",
          enable_async=True,
      )
  
      async def async_func():
          return 42
  
      async def func():
          return await t.render_async(async_func=async_func)
  
      rv = run(func())
      assert rv == "[42][42]"
  
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 5 for calling a global function with example usage: test_await_and_macros() and returns: int, unknown