code: def test_keras_multiclass_reg_model():
      kp = CohenKappa(
          num_classes=5, regression=True, sparse_labels=True
      )
      inputs = tf.keras.layers.Input(shape=(10,))
      outputs = tf.keras.layers.Dense(1)(inputs)
      model = tf.keras.models.Model(inputs, outputs)
      model.compile(optimizer="sgd", loss="mse", metrics=[kp])
  
      x = np.random.rand(1000, 10).astype(np.float32)
      y = np.random.randint(5, size=(1000,)).astype(np.float32)
  
      model.fit(x, y, epochs=1, verbose=0, batch_size=32)
  
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 14 for calling a global function with example usage: test_keras_multiclass_reg_model() without return types