code: def contains(validator, contains, instance, schema):
      if not validator.is_type(instance, "array"):
          return
  
      if not any(
          validator.is_valid(element, contains) for element in instance
      ):
          yield ValidationError(
              "None of %r are valid under the given schema"
              % (instance,)
          )
  
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 7 for calling a global function with example usage: contains(validator, contains, instance, schema) without return types