code: def _read_input_csv(in_file):
      
      with io.open(in_file, newline=None) as in_handle:
          reader = csv.reader(in_handle)
          next(reader) # header
          for line in reader:
              if line: # empty lines
                  (fc_id, lane, sample_id, genome, barcode) = line[:5]
                  yield fc_id, lane, sample_id, genome, barcode
docs: Parse useful details from SampleSheet CSV file.