code: def check_L(self, array):
      for xp in (numpy, cupy):
          a = xp.asarray(array)
          with cupyx.errstate(linalg="raise"):
              with pytest.raises(numpy.linalg.LinAlgError):
                  xp.linalg.cholesky(a)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupyx import cusolver
  from cupy.cuda import driver
  from cupy.cuda import runtime
  from cupy.linalg import _util
  from cupy import testing
  from cupy.testing import _condition
  import cupyx
label_desc: Use image node_id 1 for calling the TestCholeskyInvalid obj's underlying member method code with example usage: obj.check_L(array) without return types