code: def _convert_to_ndarray_and_squeeze(target):
      """
      Convert input to a `numpy.ndarray` and calls squeeze (to dispose of unit length dimensions).
  
      There is a special case for empty.
      There is a special case to stop single element arrays being converted to scalars.
      """
      result = np.asarray(target)
      if result.size == 0:
          result = result
      elif result.size > 1:
          result = np.squeeze(result)
      else:
          result = result.reshape(1)
  
      return result
  
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_to_ndarray_and_squeeze(target) and returns: result