code: def additionalItems(validator, aI, instance, schema):
      if not validator.is_type(instance, "array") or validator.is_type(
          schema.get("items", {}), "object"
      ):
          return
  
      len_items = len(schema.get("items", []))
      if validator.is_type(aI, "object"):
          for index, item in enumerate(
              instance[len_items:], start=len_items
          ):
              for error in validator.descend(item, aI, path=index):
                  yield error
      elif not aI and len(instance) > len(schema.get("items", [])):
          error = "Additional items are not allowed (%s %s unexpected)"
          yield ValidationError(
              error
              % extras_msg(instance[len(schema.get("items", [])) :])
          )
  
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 5 for calling a global function with example usage: additionalItems(validator, aI, instance, schema) without return types