code: def test_create_sparse_nd_empty():
      def check_empty(shape, stype):
          arr = mx.nd.empty(shape, stype=stype)
          assert arr.stype == stype
          assert same(arr.asnumpy(), np.zeros(shape))
  
      def check_csr_empty(shape, dtype, ctx):
          arr = mx.nd.sparse.csr_matrix(shape, dtype=dtype, ctx=ctx)
          assert arr.stype == "csr"
          assert arr.dtype == dtype
          assert arr.context == ctx
          assert same(arr.asnumpy(), np.zeros(shape))
          # check the default value for dtype and ctx
          arr = mx.nd.sparse.csr_matrix(shape)
          assert arr.dtype == np.float32
          assert arr.context == mx.context.current_context()
  
      def check_rsp_empty(shape, dtype, ctx):
          arr = mx.nd.sparse.row_sparse_array(
              shape, dtype=dtype, ctx=ctx
          )
          assert arr.stype == "row_sparse"
          assert arr.dtype == dtype
          assert arr.context == ctx
          assert same(arr.asnumpy(), np.zeros(shape))
          # check the default value for dtype and ctx
          arr = mx.nd.sparse.row_sparse_array(shape)
          assert arr.dtype == np.float32
          assert arr.context == mx.context.current_context()
  
      stypes = ["csr", "row_sparse"]
      shape = rand_shape_2d()
      shape_3d = rand_shape_3d()
      dtype = np.int32
      ctx = mx.cpu(1)
      for stype in stypes:
          check_empty(shape, stype)
      check_csr_empty(shape, dtype, ctx)
      check_rsp_empty(shape, dtype, ctx)
      check_rsp_empty(shape_3d, dtype, ctx)
  
imports: import pickle
  from mxnet.ndarray import NDArray
  import mxnet
  from mxnet.test_utils import *
  from common import random_seed
  from mxnet.base import mx_real_t
  from numpy.testing import assert_allclose
  import numpy.random
  import numpy
  import scipy.sparse
  from common import assertRaises, xfail_when_nonstandard_decimal_separator
  from mxnet.ndarray.sparse import RowSparseNDArray, CSRNDArray
  import pytest
label_desc: Use image node_id 33 for calling a global function with example usage: test_create_sparse_nd_empty() without return types