code: def check_sample(self, is_gpu):
      if is_gpu:
          smp1 = self.gpu_dist.sample(
              sample_shape=(100000,) + self.sample_shape
          ).data
          smp1 = cuda.to_cpu(smp1)
      else:
          smp1 = self.cpu_dist.sample(
              sample_shape=(100000,) + self.sample_shape
          ).data
      smp2 = self.scipy_dist.rvs(
          size=(100000,) + self.sample_shape + self.shape,
          **self.scipy_params,
      )
      testing.assert_allclose(
          numpy.median(smp1, axis=0),
          numpy.median(smp2, axis=0),
          atol=3e-2,
          rtol=3e-2,
      )
  
file_path: chainer/tests/chainer_tests/distributions_tests/test_pareto.py
imports: import numpy
  from chainer import cuda
  from chainer import distributions
  from chainer import testing
label_desc: Use image node_id 3 for calling the TestPareto obj's underlying member method code with example usage: obj.check_sample(is_gpu) without return types