code: def test_ndarray_serialization(a) -> None:
      b = serde.load_json(serde.dump_json(a))
      assert type(a) == type(b)
      assert a.dtype == b.dtype
      assert a.shape == b.shape
      assert np.all((a == b).asnumpy())
  
file_path: gluonts/test/mx/test_mx_serde.py
imports: from typing import List
  import pytest
  import mxnet
  import numpy
  from gluonts.core import serde
  from gluonts.core.component import equals
  from gluonts.pydantic import BaseModel
label_desc: Use image node_id 2 for calling a global function with example usage: test_ndarray_serialization(a) without return types