code: def check_ks(self, significance_level, cupy_len=100, numpy_len=1000):
      return functools.partial(
          self._check_ks, significance_level, cupy_len, numpy_len
      )
  
imports: import functools
  import unittest
  import numpy
  import cupy
  from cupy import testing
  from cupy.testing import _condition
label_desc: Use image node_id 8 for calling the BaseGeneratorTestCase obj's underlying member method code with example usage: obj.check_ks(significance_level, cupy_len, numpy_len) and returns: functools