code: def test_tri(N, M, k, dtype, chunks):
      assert_eq(da.tri(N, M, k, dtype, chunks), np.tri(N, M, k, dtype))
  
imports: from __future__ import annotations
  import pytest
  import numpy
  import pytest
  from tlz import concat
  import dask
  import dask.array
  from dask.array.core import normalize_chunks
  from dask.array.numpy_compat import AxisError
  from dask.array.utils import assert_eq, same_keys
label_desc: Use image node_id 14 for calling a global function with example usage: test_tri(N, M, k, dtype, chunks) without return types