class_docstr: Unit tests for joint distribution class 
class_docstr_tok: ["Unit","tests","for","joint","distribution","class"]
docstr: Tests random sampling from Joint distribution 
docstr_tok: ["Tests","random","sampling","from","Joint","distribution"]
code: def test_rand_sampling(self):
      """Tests random sampling from Joint distribution"""
      self.report("Test random sampling of Joint Distribution.")
      normal_rv = Normal(0, 1)
      exp_rv = Exponential(2)
      uniform_rv = ContinuousUniform(-5, 5)
      dist = JointDistribution([normal_rv, exp_rv, uniform_rv])
      samples = dist.draw_samples("random", self.size)
      for i, rv in enumerate(dist.get_rv_s()):
          self._check_sample_sizes(samples[i])
          assert (
              abs(rv.get_mean() - self._compute_mean(samples[i]))
              <= self.threshold
          )
          assert (
              abs(
                  rv.get_variance() - self._compute_variance(samples[i])
              )
              <= self.threshold
          )
  
file_path: dragonfly/dragonfly/distributions/unittest_product.py
imports: from __future__ import absolute_import
  import numpy
  from .continuous import Normal, Exponential, ContinuousUniform
  from .product import JointDistribution
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 6 for calling the JointDistributionTestCase obj's underlying member method code with example usage: obj.test_rand_sampling() without return types