code: def check_diff_to_scalar(A, x):
      """assert A == x"""
      assert np.sum(np.abs((A - x).asnumpy())) == 0, (A, x)
  
file_path: mxnet/tests/python/unittest/test_kvstore_custom.py
imports: import mxnet
  import numpy
  import unittest
  from mxnet.test_utils import rand_ndarray, assert_almost_equal
  from common import assertRaises
  from mxnet.base import py_str, MXNetError
label_desc: Use image node_id 1 for calling a global function with example usage: check_diff_to_scalar(A, x) without return types