code: def test_env():
      env = Environment(
          loader=DictLoader(
              dict(
                  module="{% macro test() %}[{{ foo }}|{{ bar }}]{% endmacro %}",
                  header="[{{ foo }}|{{ 23 }}]",
                  o_printer="({{ o }})",
              )
          )
      )
      env.globals["bar"] = 23
      return env
  
imports: import pytest
  from jinja2.environment import Environment
  from jinja2.exceptions import TemplateNotFound
  from jinja2.exceptions import TemplatesNotFound
  from jinja2.exceptions import TemplateSyntaxError
  from jinja2.exceptions import UndefinedError
  from jinja2.loaders import DictLoader
label_desc: Use image node_id 1 for calling a global function with example usage: test_env() and returns: env