code: def test_scoped_block_after_inheritance(self, env):
      env = Environment(
          loader=DictLoader(
              {
                  "layout.html": """
              {% block useless %}{% endblock %}
              """,
                  "index.html": """
              {%- extends 'layout.html' %}
              {% from 'helpers.html' import foo with context %}
              {% block useless %}
                  {% for x in [1, 2, 3] %}
                      {% block testing scoped %}
                          {{ foo(x) }}
                      {% endblock %}
                  {% endfor %}
              {% endblock %}
              """,
                  "helpers.html": """
              {% macro foo(x) %}{{ the_foo + x }}{% endmacro %}
              """,
              }
          )
      )
      rv = env.get_template("index.html").render(the_foo=42).split()
      assert rv == ["43", "44", "45"]
  
imports: import pytest
  from jinja2 import DictLoader
  from jinja2 import Environment
  from jinja2 import TemplateRuntimeError
label_desc: Use image node_id 14 for calling the TestInheritance obj's underlying member method code with example usage: obj.test_scoped_block_after_inheritance(env) without return types