code: def _triangular_inv(x, upper=False):
      if x.shape[-1] == 1:
          return 1 / x
      eye = _new_eye(x, x.shape[:-1])
      return _triangular_solve(eye, x, upper=upper)
  
imports: import numbers
  import typing
  import jax.numpy
  import jax.random
  import numpy
  from jax import lax
  from jax.core import Tracer
  from jax.scipy.linalg import cho_solve, solve_triangular
  from jax.scipy.special import expit, gammaln, logsumexp
  from ..None import ops
label_desc: Use image node_id 43 for calling a global function with example usage: _triangular_inv(x, upper) and returns: _triangular_solve, unknown