code: def update_state(self, y_true, y_pred):
      y_true = ops.convert_to_tensor(y_true)
      y_pred = ops.convert_to_tensor(y_pred)
      sum = ops.sum((y_true - y_pred) ** 2)
      self.sum.assign(self.sum + sum)
      batch_size = ops.shape(y_true)[0]
      self.total.assign(self.total + batch_size)
  
imports: import numpy
  from keras import backend
  from keras import initializers
  from keras import metrics
  from keras import ops
  from keras import testing
  from keras.metrics.metric import Metric
label_desc: Use image node_id 2 for calling the ExampleMetric obj's underlying member method code with example usage: obj.update_state(y_true, y_pred) without return types