code: def dump(self, obj, fp):
          
          if not validate(obj, self._raw_schema):
              raise AvroTypeException(self._avro_schema, obj)
          fastavro_write_data(fp, obj, self._raw_schema)
docs: Serializes obj as an avro-format byte stream to the provided
          fp file-like object stream.