code: def check_prob(self, is_gpu):
      smp = self.sample_for_test()
      if is_gpu:
          prob1 = self.gpu_dist.prob(cuda.to_gpu(smp)).data
      else:
          prob1 = self.cpu_dist.prob(smp).data
      if self.continuous:
          prob2 = self.scipy_dist.pdf(smp, **self.scipy_params)
      else:
          prob2 = self.scipy_dist.pmf(smp, **self.scipy_params)
      array.assert_allclose(prob1, prob2)
  
imports: import functools
  import unittest
  import numpy
  import chainer
  from chainer.backends import cuda
  from chainer.testing import array
  from chainer.testing import attr
  from chainer import utils
label_desc: Use image node_id 30 for calling the distribution_unittest obj's underlying member method code with example usage: obj.check_prob(is_gpu) without return types