code: def test_fixed_macro_scoping_bug(self, env):
      assert (
          Environment(
              loader=DictLoader(
                  {
                      "test.html": """\
          {% extends 'details.html' %}
  
          {% macro my_macro() %}
          my_macro
          {% endmacro %}
  
          {% block inner_box %}
              {{ my_macro() }}
          {% endblock %}
              """,
                      "details.html": """\
          {% extends 'standard.html' %}
  
          {% macro my_macro() %}
          my_macro
          {% endmacro %}
  
          {% block content %}
              {% block outer_box %}
                  outer_box
                  {% block inner_box %}
                      inner_box
                  {% endblock %}
              {% endblock %}
          {% endblock %}
          """,
                      "standard.html": """
          {% block content %}&nbsp;{% endblock %}
          """,
                  }
              )
          )
          .get_template("test.html")
          .render()
          .split()
          == ["outer_box", "my_macro"]
      )
  
imports: import pytest
  from jinja2 import DictLoader
  from jinja2 import Environment
  from jinja2 import TemplateRuntimeError
  from jinja2 import TemplateSyntaxError
label_desc: Use image node_id 1 for calling the TestBugFix obj's underlying member method code with example usage: obj.test_fixed_macro_scoping_bug(env) without return types