code: def test_solve_triangular_raises_on_nan_inf(value):
      A = pt.matrix("A")
      b = pt.matrix("b")
  
      X = pt.linalg.solve_triangular(A, b, check_finite=True)
      f = pytensor.function([A, b], X, mode="NUMBA")
      A_val = np.random.normal(size=(5, 5))
      A_sym = A_val @ A_val.conj().T
  
      A_tri = np.linalg.cholesky(A_sym).astype(config.floatX)
      b = np.full((5, 1), value)
  
      with pytest.raises(
          np.linalg.LinAlgError,
          match=re.escape("Non-numeric values"),
      ):
          f(A_tri, b)
  
file_path: pytensor/tests/link/numba/test_slinalg.py
imports: import re
  import numpy
  import pytest
  import pytensor
  import pytensor.tensor
  from pytensor import config
  from pytensor.compile import SharedVariable
  from pytensor.graph import Constant, FunctionGraph
  from tests.link.numba.test_basic import compare_numba_and_py
  from tests.tensor.test_extra_ops import set_test_value
label_desc: Use image node_id 3 for calling a global function with example usage: test_solve_triangular_raises_on_nan_inf(value) without return types