code: def test_import_as_with_context_deterministic(tmp_path):
      src = "\n".join(
          f'{{% import "bar" as bar{i} with context %}}'
          for i in range(10)
      )
      env = Environment(loader=DictLoader({"foo": src}))
      env.compile_templates(tmp_path, zip=None)
      name = os.listdir(tmp_path)[0]
      content = (tmp_path / name).read_text("utf8")
      expect = [f"'bar{i}': " for i in range(10)]
      found = re.findall(r"'bar\d': ", content)[:10]
      assert found == expect
  
imports: import os
  import re
  from jinja2.environment import Environment
  from jinja2.loaders import DictLoader
label_desc: Use image node_id 2 for calling a global function with example usage: test_import_as_with_context_deterministic(tmp_path) without return types