code: def encode_mx_ndarray(v: mx.nd.NDArray) -> Any:
      return {
          "__kind__": Kind.Instance,
          "class": "mxnet.nd.array",
          "args": encode([v.asnumpy().tolist()]),
          "kwargs": {"dtype": encode(v.dtype)},
      }
  
imports: from typing import Any
  import mxnet
  from gluonts.core import fqname_for
  from gluonts.core.serde import Kind, encode
label_desc: Use image node_id 2 for calling a global function with example usage: encode_mx_ndarray(v) and returns: dict