class_docstr: ConditionSpec with a single condition applicable to an epoch.
class_docstr_tok: ["ConditionSpec","with","a","single","condition","applicable","to","an","epoch","."]
docstr: Extract condition labels.
  
  Returns
  -------
  np.ndarray
      The condition label of each epoch.
docstr_tok: ["Extract","condition","labels",".","Returns","--","--","--","-","np.ndarray","The","condition","label","of","each","epoch","."]
code: def extract_labels(self) -> np.ndarray:
      """Extract condition labels.
  
      Returns
      -------
      np.ndarray
          The condition label of each epoch.
      """
      condition_idxs, epoch_idxs, _ = np.where(self)
      _, unique_epoch_idxs = np.unique(epoch_idxs, return_index=True)
      return condition_idxs[unique_epoch_idxs]
  
file_path: brainiak/brainiak/image.py
imports: import itertools
  from typing import Optional, Iterable, Sequence, Type, TypeVar
  import numpy
  from nibabel.spatialimages import SpatialImage
label_desc: Use image node_id 1 for calling the SingleConditionSpec obj's underlying member method code with example usage: obj.extract_labels() and returns: condition_idxs