code: def setup_class(cls):
      # temporary: res instance is at last position
      cls.res = cohens_kappa(table10, weights=[0, 1, 2])
      res10w_sas = [0.4701, 0.1457, 0.1845, 0.7558]
      res10w_sash0 = [
          0.1426,
          3.2971,
          0.0005,
          0.0010,
      ]  # for test H0:kappa=0
      cls.res2 = res10w_sas + res10w_sash0  # concatenate
  
      cls.res_string = (
          """\
                    Weighted Kappa Coefficient
                --------------------------------
                Kappa                     0.4701
                ASE                       0.1457
                95% Lower Conf Limit      0.1845
                95% Upper Conf Limit      0.7558
  
                   Test of H0: Weighted Kappa = 0
  
                ASE under H0              0.1426
                Z                         3.2971
                One-sided Pr >  Z         0.0005
                Two-sided Pr > |Z|        0.0010"""
          + "\n"
      )
  
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_allclose
  from statsmodels.stats.inter_rater import fleiss_kappa, cohens_kappa, to_table, aggregate_raters
  from statsmodels.tools.testing import Holder
label_desc: Use image node_id 1 for calling the TestWeightedCohens obj's underlying member method code with example usage: obj.setup_class(cls) without return types