code: def test_cholesky(shape, chunk):
      A = _get_symmat(shape)
      dA = da.from_array(A, (chunk, chunk))
      assert_eq(
          da.linalg.cholesky(dA).compute(),
          scipy.linalg.cholesky(A),
          check_graph=False,
          check_chunks=False,
      )
      assert_eq(
          da.linalg.cholesky(dA, lower=True),
          scipy.linalg.cholesky(A, lower=True),
          check_graph=False,
          check_chunks=False,
      )
  
imports: from __future__ import annotations
  import sys
  import pytest
  import numpy
  import scipy.linalg
  from packaging.version import parse
  import dask.array
  from dask.array.linalg import qr, sfqr, svd, svd_compressed, tsqr
  from dask.array.numpy_compat import _np_version
  from dask.array.utils import assert_eq, same_keys, svd_flip
label_desc: Use image node_id 28 for calling a global function with example usage: test_cholesky(shape, chunk) without return types