code: def _check_lu_result(p, l, u, A):
      assert np.allclose(p.dot(l).dot(u), A)
  
      # check triangulars
      assert_eq(l, da.tril(l), check_graph=False)
      assert_eq(u, da.triu(u), check_graph=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 14 for calling a global function with example usage: _check_lu_result(p, l, u, A) without return types