code: def load_labels(path: Union[str, Path]) -> List[SingleConditionSpec]:
      """Load labels files.
  
      Parameters
      ----------
      path
          Path of labels file.
  
      Returns
      -------
      List[SingleConditionSpec]
          List of SingleConditionSpec stored in labels file.
      """
      condition_specs = np.load(str(path))
      return [c.view(SingleConditionSpec) for c in condition_specs]
  
file_path: brainiak/brainiak/io.py
imports: from pathlib import Path
  from typing import Optional, Callable, Iterable, List, Union
  import logging
  import nibabel
  import numpy
  from nibabel.nifti1 import Nifti1Pair
  from nibabel.spatialimages import SpatialImage
  from .image import SingleConditionSpec
label_desc: Use image node_id 4 for calling a global function with example usage: load_labels(path) and returns: unknown