code: def test_reshape():
      x = mx.sym.Variable("x")
      y = mx.sym.FullyConnected(x, num_hidden=4)
  
      exe = y._simple_bind(mx.cpu(), x=(5, 4), grad_req="null")
      exe.arg_arrays[0][:] = 1
      exe.arg_arrays[1][:] = mx.nd.ones((4, 4))
      exe.arg_arrays[2][:] = 0
  
      exe.forward(is_train=False)
      # test sub exec forward
      assert np.all(exe.outputs[0].asnumpy() == 4)
      # test shared memory
      assert np.all(exe.outputs[0].asnumpy()[:3] == 4)
      # test base exec forward
      exe.forward(is_train=False)
      assert np.all(exe.outputs[0].asnumpy() == 4)
  
      # data ndarray is not shared between exe and new_exe
      exe.arg_arrays[0][:] = 0
      # weight ndarray is shared between exe and new_exe
      assert np.all(exe.arg_arrays[1].asnumpy() == 1)
  
file_path: mxnet/tests/python/unittest/test_executor.py
imports: import numpy
  import mxnet
  from mxnet.test_utils import assert_almost_equal, environment
label_desc: Use image node_id 4 for calling a global function with example usage: test_reshape() without return types