code: def test_mixture_rvs_random(self):
      # Test only medium small sample at 1 decimal
      np.random.seed(0)
      mix = MixtureDistribution()
      res = mix.rvs(
          [0.75, 0.25],
          1000,
          dist=[stats.norm, stats.norm],
          kwargs=(dict(loc=-1, scale=0.5), dict(loc=1, scale=0.5)),
      )
      npt.assert_almost_equal(
          np.array([res.std(), res.mean(), res.var()]),
          np.array([1, -0.5, 1]),
          decimal=1,
      )
  
file_path: statsmodels/statsmodels/distributions/tests/test_mixture.py
imports: import numpy
  import numpy.testing
  from statsmodels.distributions.mixture_rvs import mv_mixture_rvs, MixtureDistribution
  import statsmodels.sandbox.distributions.mv_normal
  from scipy import stats
label_desc: Use image node_id 1 for calling the TestMixtureDistributions obj's underlying member method code with example usage: obj.test_mixture_rvs_random() without return types