code: def test_seed(self, seed):
      if SP_LT_15 and seed in ("generator", 0):
          pytest.xfail(
              reason="Generator not supported for SciPy <= 1.3"
          )
      if seed == "random_state":
          seed1 = np.random.RandomState(0)
          seed2 = np.random.RandomState(0)
      elif seed == "generator":
          seed1 = np.random.default_rng(0)
          seed2 = 0
      elif seed is None:
          seed1 = None
          singleton = np.random.mtrand._rand
          seed2 = np.random.RandomState()
          seed2.set_state(singleton.get_state())
      elif seed == "qmc":
          if not hasattr(stats, "qmc"):
              pytest.skip("QMC not available")
          else:
              pytest.xfail("QMC not working")
          seed1 = stats.qmc.Halton(2)
          seed2 = stats.qmc.Halton(2)
      else:
          seed1 = 0
          seed2 = np.random.default_rng(0)
  
      nobs = 2000
      expected_warn = None if seed1 is not None else FutureWarning
      with pytest_warns(expected_warn):
          rvs1 = self.copula.rvs(nobs, random_state=seed1)
      rvs2 = self.copula.rvs(nobs, random_state=seed2)
      assert_allclose(rvs1, rvs2)
  
imports: import warnings
  from statsmodels.compat.pytest import pytest_warns
  from statsmodels.compat.scipy import SP_LT_15
  import numpy
  from numpy.testing import assert_allclose, assert_array_almost_equal
  import pytest
  from scipy import stats
  from statsmodels.distributions.copula.archimedean import ArchimedeanCopula, ClaytonCopula, FrankCopula, GumbelCopula, _debyem1_expansion
  from statsmodels.distributions.copula.copulas import CopulaDistribution
  import statsmodels.distributions.copula.depfunc_ev
  from statsmodels.distributions.copula.elliptical import GaussianCopula, StudentTCopula
  from statsmodels.distributions.copula.extreme_value import ExtremeValueCopula, copula_bv_ev
  from statsmodels.distributions.copula.other_copulas import IndependenceCopula
  import statsmodels.distributions.copula.transforms
  from statsmodels.distributions.tools import approx_copula_pdf, frequencies_fromdata
  from statsmodels.tools.numdiff import approx_fprime_cs, approx_hess
label_desc: Use image node_id 1 for calling the CheckModernCopula obj's underlying member method code with example usage: obj.test_seed(seed) without return types