code: def test_slice(env_async, items):
      tmpl = env_async.from_string(
          "{{ items()|slice(3)|list }}|{{ items()|slice(3, 'X')|list }}"
      )
      out = tmpl.render(items=items)
      assert out == (
          "[[0, 1, 2, 3], [4, 5, 6], [7, 8, 9]]|"
          "[[0, 1, 2, 3], [4, 5, 6, 'X'], [7, 8, 9, 'X']]"
      )
  
imports: from collections import namedtuple
  import pytest
  from jinja2 import Environment
  from jinja2.utils import Markup
label_desc: Use image node_id 26 for calling a global function with example usage: test_slice(env_async, items) without return types