code: def test_mixture_pdf(self):
      mix = MixtureDistribution()
      grid = np.linspace(-4, 4, 10)
      res = mix.pdf(
          grid,
          [1 / 3.0, 2 / 3.0],
          dist=[stats.norm, stats.norm],
          kwargs=(dict(loc=-1, scale=0.25), dict(loc=1, scale=0.75)),
      )
      npt.assert_almost_equal(
          res,
          np.array(
              [
                  7.92080017e-11,
                  1.05977272e-07,
                  3.82368500e-05,
                  2.21485447e-01,
                  1.00534607e-01,
                  2.69531536e-01,
                  3.21265627e-01,
                  9.39899015e-02,
                  6.74932493e-03,
                  1.18960201e-04,
              ]
          ),
      )
  
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 3 for calling the TestMixtureDistributions obj's underlying member method code with example usage: obj.test_mixture_pdf() without return types