code: def _generate_barcode_ids(info_iter):
      
      bc_type = "SampleSheet"
      barcodes = list(set([x[-1] for x in info_iter]))
      barcodes.sort()
      barcode_ids = {}
      for i, bc in enumerate(barcodes):
          barcode_ids[bc] = (bc_type, i+1)
      return barcode_ids
docs: Create unique barcode IDs assigned to sequences