code: def test_ndarray_choose():
      shape = (100, 20)
      npy = np.arange(np.prod(shape)).reshape(shape)
      arr = mx.nd.array(npy)
      nrepeat = 3
      for repeat in range(nrepeat):
          indices = np.random.randint(shape[1], size=shape[0])
          assert same(
              npy[np.arange(shape[0]), indices],
              mx.nd.choose_element_0index(
                  arr, mx.nd.array(indices)
              ).asnumpy(),
          )
  
imports: import os
  import mxnet
  import numpy
  import pickle
label_desc: Use image node_id 8 for calling a global function with example usage: test_ndarray_choose() without return types