code: def asnumpy(self):
          
          data = np.empty(self.shape, dtype=self.dtype)
          check_call(_LIB.MXNDArraySyncCopyToCPU(
              self.handle,
              data.ctypes.data_as(ctypes.c_void_p),
              ctypes.c_size_t(data.size)))
          return data
docs: Returns a ``numpy.ndarray`` object with value copied from this array.
  
          Examples
          --------
          >>> x = mx.nd.ones((2,3))
          >>> y = x.asnumpy()
          >>> type(y)
          <type 'numpy.ndarray'>
          >>> y
          array([[ 1.,  1.,  1.],
                 [ 1.,  1.,  1.]], dtype=float32)
          >>> z = mx.nd.ones((2,3), dtype='int32')
          >>> z.asnumpy()
          array([[1, 1, 1],
                 [1, 1, 1]], dtype=int32)