code: def test_gufunc_vector_output():
      def foo():
          return np.array([1, 2, 3], dtype=int)
  
      x = apply_gufunc(
          foo, "->(i_0)", output_dtypes=int, output_sizes={"i_0": 3}
      )
      assert x.chunks == ((3,),)
      assert_eq(x, np.array([1, 2, 3]))
  
imports: from __future__ import annotations
  import numpy
  import pytest
  from numpy.testing import assert_equal
  import dask.array
  from dask.array.core import Array
  from dask.array.gufunc import _parse_gufunc_signature, _validate_normalize_axes, apply_gufunc, as_gufunc, gufunc
  from dask.array.utils import assert_eq
label_desc: Use image node_id 17 for calling a global function with example usage: test_gufunc_vector_output() and returns: np