code: def _coerce_to_1d_numpy(obj):
      """Coerce to 1D np.ndarray, from pd.DataFrame or pd.Series."""
      if isinstance(obj, (pd.DataFrame, pd.Series)):
          obj = obj.values
      return obj.flatten()
  
imports: import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: _coerce_to_1d_numpy(obj) and returns: obj