code: def random_ndarray(dim):
      shape = tuple(
          np.random.randint(1, int(1000 ** (1.0 / dim)), size=dim)
      )
      data = mx.nd.array(np.random.uniform(-10, 10, shape))
      return data
  
imports: import os
  import mxnet
  import numpy
  import pickle
label_desc: Use image node_id 5 for calling a global function with example usage: random_ndarray(dim) and returns: data