code: def items(validator, items, instance, schema):
      if not validator.is_type(instance, "array"):
          return
  
      if validator.is_type(items, "array"):
          for (index, item), subschema in zip(
              enumerate(instance), items
          ):
              for error in validator.descend(
                  item,
                  subschema,
                  path=index,
                  schema_path=index,
              ):
                  yield error
      else:
          for index, item in enumerate(instance):
              for error in validator.descend(item, items, path=index):
                  yield error
  
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 4 for calling a global function with example usage: items(validator, items, instance, schema) without return types