code: def setup_class(cls):
      grid = dt._Grid([91, 101])
  
      cop_tr = tra.TransfFrank
      args = (2,)
      ca = ArchimedeanCopula(cop_tr())
      distr1 = stats.beta(4, 3)
      distr2 = stats.beta(4, 4)  # (5, 2)
      cad = CopulaDistribution(ca, [distr1, distr2], cop_args=args)
      cdfv = cad.cdf(grid.x_flat, args)
      cdf_g = cdfv.reshape(grid.k_grid)
  
      cls.grid = grid
      cls.cdfv = cdfv
      cls.distr = cad
      cls.bpd = BernsteinDistributionBV(cdf_g)
  
file_path: statsmodels/statsmodels/distributions/tests/test_bernstein.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_array_less
  from scipy import stats
  from statsmodels.distributions.copula.api import CopulaDistribution, ArchimedeanCopula
  from statsmodels.distributions.copula.api import transforms
  import statsmodels.distributions.tools
  from statsmodels.distributions.bernstein import BernsteinDistribution, BernsteinDistributionBV, BernsteinDistributionUV
label_desc: Use image node_id 1 for calling the TestBernsteinBeta2d obj's underlying member method code with example usage: obj.setup_class(cls) without return types