code: def test_without_perfect_agreement_and_sample_weights(self):
      self.assertAlmostEqual(
          0.615,
          _adapted_cohen_kappa_score(
              np.array([0, 1, 1, 1, 0]), np.array([0, 1, 0, 1, 0])
          ),
          places=2,
      )
  
      self.assertAlmostEqual(
          0.932,
          _adapted_cohen_kappa_score(
              np.array([0, 1, 1, 1, 0]),
              np.array([0, 1, 0, 1, 0]),
              sample_weight=[0.1, 1.0, 0.1, 1.0, 1.0],
          ),
          places=2,
      )
  
imports: import unittest
  import numpy
  from numpy.testing import assert_array_equal
  from small_text.stopping_criteria.kappa import KappaAverage, _adapted_cohen_kappa_score
label_desc: Use image node_id 2 for calling the TestAdaptedCohenKappScore obj's underlying member method code with example usage: obj.test_without_perfect_agreement_and_sample_weights() without return types