code: def check_metric(metric, *args, **kwargs):
      metric = mx.gluon.metric.create(metric, *args, **kwargs)
      str_metric = json.dumps(metric.get_config())
      metric2 = mx.gluon.metric.create(str_metric)
  
      assert metric.get_config() == metric2.get_config()
  
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 1 for calling a global function with example usage: check_metric(metric) without return types