code: def test_sum_attributes_nested(env_async):
      tmpl = env_async.from_string("""{{ values|sum('real.value') }}""")
      assert (
          tmpl.render(
              values=[
                  {"real": {"value": 23}},
                  {"real": {"value": 1}},
                  {"real": {"value": 18}},
              ]
          )
          == "42"
      )
  
imports: from collections import namedtuple
  import pytest
  from markupsafe import Markup
  from jinja2 import Environment
  from jinja2.async_utils import auto_aiter
label_desc: Use image node_id 25 for calling a global function with example usage: test_sum_attributes_nested(env_async) without return types