code: def _verifyCholeskyBase(
      self, sess, placeholder, x, chol, verification, atol
  ):
      chol_np, verification_np = sess.run(
          [chol, verification], {placeholder: x}
      )
      self.assertAllClose(x, verification_np, atol=atol)
      self.assertShapeEqual(x, chol)
      # Check that the cholesky is lower triangular, and has positive diagonal
      # elements.
      if chol_np.shape[-1] > 0:
          chol_reshaped = np.reshape(
              chol_np, (-1, chol_np.shape[-2], chol_np.shape[-1])
          )
          for chol_matrix in chol_reshaped:
              self.assertAllClose(
                  chol_matrix, np.tril(chol_matrix), atol=atol
              )
              self.assertTrue((np.diag(chol_matrix) > 0.0).all())
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the CholeskyOpTest obj's underlying member method code with example usage: obj._verifyCholeskyBase(sess, placeholder, x, chol, verification, atol) without return types