code: def test_apply_gufunc_axis_03():
      def mydiff(x):
          return np.diff(x, axis=-1)
  
      a = np.random.default_rng().standard_normal((3, 6, 4))
      da_ = da.from_array(a, chunks=2)
  
      m = np.diff(a, axis=1)
      dm = apply_gufunc(
          mydiff,
          "(i)->(i)",
          da_,
          axis=1,
          output_sizes={"i": 5},
          allow_rechunk=True,
      )
      assert_eq(m, dm)
  
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 37 for calling a global function with example usage: test_apply_gufunc_axis_03() and returns: np