code: def update_obj_states(obj1, obj2, obj3, actuals, preds, weights):
      obj1.update_state(actuals, preds, sample_weight=weights)
      obj2.update_state(actuals, preds, sample_weight=weights)
      obj3.update_state(actuals, preds, sample_weight=weights)
  
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 3 for calling a global function with example usage: update_obj_states(obj1, obj2, obj3, actuals, preds, weights) without return types