code: def test_loss_update():
      pred = mx.np.array([[0.3, 0.7], [0, 1.0], [0.4, 0.6]])
      metric1 = mx.gluon.metric.create("loss")
      metric2 = mx.gluon.metric.create("loss")
      metric1.update(None, [pred])
      metric2.update(None, pred)
      _, acc1 = metric1.get()
      _, acc2 = metric2.get()
      assert acc1 == acc2
  
imports: import mxnet
  from mxnet.test_utils import use_np
  import numpy
  import scipy
  from scipy.stats import pearsonr
  import json
  import math
  from common import xfail_when_nonstandard_decimal_separator
  from copy import deepcopy
label_desc: Use image node_id 6 for calling a global function with example usage: test_loss_update() without return types