code: def test_apply_gufunc_output_dtypes(output_dtypes):
      def foo(x):
          return y
  
      x = np.random.default_rng().standard_normal(10)
      y = x.astype(int)
      dy = apply_gufunc(foo, "()->()", x, output_dtypes=output_dtypes)
      # print(x, x.compute())
      assert_eq(y, dy)
  
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 22 for calling a global function with example usage: test_apply_gufunc_output_dtypes(output_dtypes) and returns: y