code: def test_apply_gufunc_elemwise_core():
      def foo(x):
          assert x.shape == (3,)
          return 2 * x
  
      a = da.from_array(np.array([1, 2, 3]), chunks=3, name="a")
      z = apply_gufunc(foo, "(i)->(i)", a, output_dtypes=int)
      assert z.chunks == ((3,),)
      assert_eq(z, np.array([2, 4, 6]))
  
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 19 for calling a global function with example usage: test_apply_gufunc_elemwise_core() and returns: unknown