code: def test_random(self):
      n = 20
      for k in range(2):
          m = random([n, n])
          for i in range(n):
              m[i, i] = 20 * (0.1 + m[i, i])
          a = dot(transpose(m), m)
          c = cholesky(a)
          a1 = dot(transpose(c), c)
          assert_array_almost_equal(a, a1)
          c = transpose(c)
          a = dot(c, transpose(c))
          assert_array_almost_equal(cholesky(a, lower=1), c)
  
imports: from __future__ import division, print_function, absolute_import
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from pytest import raises
  from numpy import array, transpose, dot, conjugate, zeros_like, empty
  from numpy.random import random
  from scipy.linalg import cholesky, cholesky_banded, cho_solve_banded, cho_factor, cho_solve
  from scipy.linalg._testutils import assert_no_overwrite
label_desc: Use image node_id 4 for calling the TestCholesky obj's underlying member method code with example usage: obj.test_random() without return types