code: def test_solve_triangular_errors():
      A = np.random.default_rng().integers(0, 10, (10, 10, 10))
      b = np.random.default_rng().integers(1, 10, 10)
      dA = da.from_array(A, chunks=(5, 5, 5))
      db = da.from_array(b, chunks=5)
      pytest.raises(
          ValueError, lambda: da.linalg.solve_triangular(dA, db)
      )
  
      A = np.random.default_rng().integers(0, 10, (10, 10))
      b = np.random.default_rng().integers(1, 10, 10)
      dA = da.from_array(A, chunks=(3, 3))
      db = da.from_array(b, chunks=5)
      pytest.raises(
          ValueError, lambda: da.linalg.solve_triangular(dA, db)
      )
  
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 22 for calling a global function with example usage: test_solve_triangular_errors() without return types