code: def isposdef(A: Tensor) -> bool:
      """Determines whether A is positive definite or not, by attempting a Cholesky
      decomposition. Expects batches of square matrices. Throws a RuntimeError otherwise.
      """
      _, info = torch.linalg.cholesky_ex(A)
      return not torch.any(info)
  
file_path: botorch/test/models/kernels/test_orthogonal_additive_kernel.py
imports: import torch
  from botorch.exceptions.errors import UnsupportedError
  from botorch.models.kernels.orthogonal_additive_kernel import OrthogonalAdditiveKernel
  from botorch.utils.testing import BotorchTestCase
  from gpytorch.kernels import MaternKernel
  from gpytorch.lazy import LazyEvaluatedKernelTensor
  from torch import nn, Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: isposdef(A) and returns: unknown