code: def _convert_to_ndarray_1d(target):
      """Convert the input to a `numpy.ndarray` with a single dimension.
  
      If the input is multi-dimension, this will raise an exception
      """
      result = _convert_to_ndarray_and_squeeze(target)
  
      if len(result.shape) > 1:
          raise ValueError(_ARRAY_NOT_1D)
  
      return result
  
label_desc: Use image node_id 2 for calling a global function with example usage: _convert_to_ndarray_1d(target) and returns: result