code: def validate_max_items(value, maximum, **kwargs):
      
      if len(value) > maximum:
          raise ValidationError(
              MESSAGES['max_items']['invalid'].format(
                  maximum, len(value),
              ),
          )
docs: Validator for ARRAY types to enforce a maximum number of items allowed for
      the ARRAY to be valid.