code: def test_scoped_block(self, env):
      env = Environment(
          loader=DictLoader(
              {
                  "master.html": "{% for item in seq %}[{% block item scoped %}"
                  "{% endblock %}]{% endfor %}"
              }
          )
      )
      t = env.from_string(
          "{% extends 'master.html' %}{% block item %}{{ item }}{% endblock %}"
      )
      assert t.render(seq=list(range(5))) == "[0][1][2][3][4]"
  
imports: import pytest
  from jinja2 import DictLoader
  from jinja2 import Environment
  from jinja2 import TemplateRuntimeError
label_desc: Use image node_id 12 for calling the TestInheritance obj's underlying member method code with example usage: obj.test_scoped_block(env) without return types