code: def test_diff(shape, n, axis):
      x = cupy.random.default_rng().integers(0, 10, shape)
      a = da.from_array(x, chunks=(len(shape) * (5,)))
  
      assert_eq(da.diff(a, n, axis), cupy.diff(x, n, axis))
  
file_path: dask/dask/array/tests/test_cupy_routines.py
imports: from __future__ import annotations
  import numpy
  import pytest
  from packaging.version import parse
  import dask.array
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 3 for calling a global function with example usage: test_diff(shape, n, axis) without return types