code: def validate_many(records, schema, raise_errors=True):
      
      errors = []
      results = []
      for record in records:
          try:
              results.append(validate(record, schema, raise_errors=raise_errors))
          except ValidationError as e:
              errors.extend(e.errors)
      if raise_errors and errors:
          raise ValidationError(*errors)
      return all(results)
docs: Validate a list of data!
  
      Parameters
      ----------
      records: iterable
          List of records to validate
      schema: dict
          Schema
      raise_errors: bool, optional
          If true, errors are raised for invalid data. If false, a simple
          True (valid) or False (invalid) result is returned
  
  
      Example::
  
          from fastavro.validation import validate_many
          schema = {...}
          records = [{...}, {...}, ...]
          validate_many(records, schema)