code: def _update_id(record, new_id):
      
      old_id = record.id
      record.id = new_id
  
      # At least for FASTA, record ID starts the description
      record.description = re.sub('^' + re.escape(old_id), new_id, record.description)
      return record
docs: Update a record id to new_id, also modifying the ID in record.description