<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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]