code: def test_large_values():
      y_true = [1] * 10000 + [0] * 20000 + [1] * 20000
      y_pred = [0] * 20000 + [1] * 30000
  
      y_true = tf.convert_to_tensor(y_true)
      y_pred = tf.convert_to_tensor(y_pred)
  
      obj = CohenKappa(num_classes=2)
  
      obj.update_state(y_true, y_pred)
      np.testing.assert_allclose(0.166666666, obj.result(), 1e-6, 1e-6)
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.metrics import CohenKappa
  from tensorflow_addons.testing.serialization import check_metric_serialization
label_desc: Use image node_id 11 for calling a global function with example usage: test_large_values() without return types