code: def initialize_vars():
      kp_obj1 = CohenKappa(num_classes=5, sparse_labels=True)
      kp_obj2 = CohenKappa(
          num_classes=5, sparse_labels=True, weightage="linear"
      )
      kp_obj3 = CohenKappa(
          num_classes=5, sparse_labels=True, weightage="quadratic"
      )
  
      return kp_obj1, kp_obj2, kp_obj3
  
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 2 for calling a global function with example usage: initialize_vars() and returns: kp_obj1,  kp_obj2,  kp_obj3