code: def _scalar_output_to_0d_array(function: Callable) -> Callable:
      """Convert scalar outputs to 0d arrays.
  
      Sometimes NumPy functions return scalars e.g. `np.add` does when the
      inputs are both 0 dimensional.
  
      We use this wrapper to handle such cases, and convert scalar outputs
      to 0d arrays, since the array API standard dictates outputs must be
      arrays.
      """
  
      @functools.wraps(function)
      def new_function(*args, **kwargs):
          ret = function(*args, **kwargs)
          return np.asarray(ret) if np.isscalar(ret) else ret
  
      return new_function
  
label_desc: Use image node_id 1 for calling a global function with example usage: _scalar_output_to_0d_array(function) and returns: new_function, unknown