code: def test_stop_with_prediction_size_changing(self):
      stopping_criterion = KappaAverage(2)
  
      with self.assertRaises(ValueError):
          stopping_criterion.stop(predictions=np.array([0, 1, 0]))
          stopping_criterion.stop(predictions=np.array([0, 1, 0, 1]))
  
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 8 for calling the KappaAverageTest obj's underlying member method code with example usage: obj.test_stop_with_prediction_size_changing() without return types