code: def cholesky(x, /, *, upper=False):
      """
      Returns the lower (upper) Cholesky decomposition of a complex Hermitian or real symmetric positive-definite matrix x.
      """
      return jax.numpy.linalg.cholesky(
          jax.numpy.matrix_transpose(x) if upper else x
      )
  
imports: from functools import partial
  from typing import NamedTuple
  import jax
  from jax.experimental.array_api._data_type_functions import _promote_to_default_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: cholesky() and returns: jax