code: def yvals(y):
      if len(np.atleast_1d(y[0])) > 1:
          return np.unique(np.concatenate(y))
      else:
          return np.unique(y)
  
file_path: seglearn/seglearn/tests/test_pipe.py
imports: import numpy
  import pandas
  import pytest
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.linear_model import Ridge
  from sklearn.model_selection import cross_validate
  from sklearn.preprocessing import StandardScaler
  from seglearn.base import TS_Data
  from seglearn.pipe import Pype
  from seglearn.transform import FeatureRep, SegmentX, SegmentXY, SegmentXYForecast, PadTrunc
label_desc: Use image node_id 1 for calling a global function with example usage: yvals(y) and returns: np, np