code: def test_apply_gufunc_via_numba_02():
      numba = pytest.importorskip("numba")
  
      @numba.guvectorize(
          [(numba.float64[:], numba.float64[:])], "(n)->()"
      )
      def mysum(x, res):
          res[0] = 0.0
          for i in range(x.shape[0]):
              res[0] += x[i]
  
      a = da.random.default_rng().normal(size=(20, 30), chunks=30)
  
      x = a.sum(axis=0, keepdims=True)
      y = mysum(a, axis=0, keepdims=True)
      assert_eq(x, y)
  
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 43 for calling a global function with example usage: test_apply_gufunc_via_numba_02() without return types