code: def test_multi_inheritance(self, env):
      env = Environment(
          loader=DictLoader(
              {
                  "master1": "MASTER1{% block x %}{% endblock %}",
                  "master2": "MASTER2{% block x %}{% endblock %}",
                  "child": """{% if master %}{% extends master %}{% else %}{% extends
                  'master1' %}{% endif %}{% block x %}CHILD{% endblock %}""",
              }
          )
      )
      tmpl = env.get_template("child")
      assert tmpl.render(master="master2") == "MASTER2CHILD"
      assert tmpl.render(master="master1") == "MASTER1CHILD"
      assert tmpl.render() == "MASTER1CHILD"
  
imports: import pytest
  from jinja2 import DictLoader
  from jinja2 import Environment
  from jinja2 import TemplateRuntimeError
label_desc: Use image node_id 11 for calling the TestInheritance obj's underlying member method code with example usage: obj.test_multi_inheritance(env) without return types