code: def anyOf(validator, anyOf, instance, schema):
      all_errors = []
      for index, subschema in enumerate(anyOf):
          errs = list(
              validator.descend(instance, subschema, schema_path=index)
          )
          if not errs:
              break
          all_errors.extend(errs)
      else:
          yield ValidationError(
              "%r is not valid under any of the given schemas"
              % (instance,),
              context=all_errors,
          )
  
imports: import re
  from jsonschema._utils import ensure_list, equal, extras_msg, find_additional_properties, types_msg, unbool, uniq
  from jsonschema.exceptions import FormatError, ValidationError
  from jsonschema.compat import iteritems
label_desc: Use image node_id 29 for calling a global function with example usage: anyOf(validator, anyOf, instance, schema) without return types