code: def test_cholesky(shape, chunk):
      scipy_linalg = pytest.importorskip("scipy.linalg")
  
      A = _get_symmat(shape)
      dA = da.from_array(A, (chunk, chunk))
  
      # Need to take the transpose because default in `cupy.linalg.cholesky` is
      # to return lower triangle
      assert_eq(
          da.linalg.cholesky(dA),
          cupy.linalg.cholesky(A).T,
          check_graph=False,
          check_chunks=False,
      )
      assert_eq(
          da.linalg.cholesky(dA, lower=True).map_blocks(cupy.asnumpy),
          scipy_linalg.cholesky(cupy.asnumpy(A), lower=True),
          check_graph=False,
          check_chunks=False,
      )
  
file_path: dask/dask/array/tests/test_cupy_linalg.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
label_desc: Use image node_id 6 for calling a global function with example usage: test_cholesky(shape, chunk) without return types