code: def labels_to_indices(self, labels: Sequence[str]) -> List[int]:
          
  
          return [self.LABEL_TO_INDEX[label] for label in labels]
docs: Converts a sequence of labels into their corresponding indices.