code: def extends_draft3(validator, extends, instance, schema):
      if validator.is_type(extends, "object"):
          for error in validator.descend(instance, extends):
              yield error
          return
      for index, subschema in enumerate(extends):
          for error in validator.descend(
              instance, subschema, schema_path=index
          ):
              yield error
  
file_path: catboost/contrib/python/jsonschema/py2/jsonschema/_legacy_validators.py
imports: from jsonschema import _utils
  from jsonschema.compat import iteritems
  from jsonschema.exceptions import ValidationError
label_desc: Use image node_id 3 for calling a global function with example usage: extends_draft3(validator, extends, instance, schema) without return types