def add_cohort_with_sample_barcodes(self, cohort_id, barcodes):
    rows = []
    for sample_barcode in barcodes:
        patient_barcode = sample_barcode[:12]
        rows.append(self._build_cohort_row(cohort_id, patient_barcode, sample_barcode, None))
    response = self._streaming_insert(rows)
    return response
def add_cohort_with_sample_barcodes(self, cohort_id, barcodes):
    rows = []
    for sample_barcode in barcodes:
        patient_barcode = sample_barcode[:12]
        rows.append(self._build_cohort_row(cohort_id, patient_barcode, sample_barcode, None))
    response = self._streaming_insert(rows)
    return response