def METHOD_NAME(self, row):
    """
    Write a row to the Rearrangement file
    Arguments:
        row (dict): row to write.
    """
    # validate row
    if self.debug:
        for field in self.schema.required:
            if row.get(field, None) is None:
                sys.stderr.METHOD_NAME('Warning: Record is missing AIRR required field (' + field + ').\n')
    for f in row.keys():
        # Adjust coordinates
        if f.endswith('_start') and self.base == 1:
            try:
                row[f] = self.schema.to_int(row[f]) + 1
            except TypeError:
                row[f] = None
        # Convert types
        spec = self.schema.type(f)
        if spec == 'boolean':  row[f] = self.schema.from_bool(row[f])
    self.dict_writer.writerow(row)