[OpPerf] Fixes the issue when you pass NDArray to run_perf_test (#17508)
[OpPerf] Fixes the issue when you pass NDArray to run_perf_test (#17508)

* Fix typeError

Fixes the issue when you pass NDArray to the opperf. It errors out 
```
run_performance_test(nd.gather_nd, inputs=[{"data": (2, 22), "indices":nd.random_uniform(low=0,high=1,shape=(1,2))}], run_backward=T
rue, warmup=1, runs=1)
TypeError: isinstance() arg 2 must be a type or tuple of types
```

* Fix unexpected keyword argument 'ctx' error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/incubator-mxnet/benchmark/opperf/utils/benchmark_utils.py", line 133, in run_performance_test
    args_list, kwargs_list = _prepare_op_inputs(inputs, run_backward, dtype, ctx)
  File "/home/ubuntu/incubator-mxnet/benchmark/opperf/utils/benchmark_utils.py", line 50, in _prepare_op_inputs
    attach_grad=run_backward)
  File "/home/ubuntu/incubator-mxnet/benchmark/opperf/utils/ndarray_utils.py", line 120, in get_mx_ndarray
    tensor = in_tensor.as_in_context(ctx=ctx).astype(dtype=dtype)
TypeError: as_in_context() got an unexpected keyword argument 'ctx'

eric-haibin-lin/mxnet,larroy/mxnet,larroy/mxnet,ForkedReposBak/mxnet,ForkedReposBak/mxnet,szha/mxnet,zhreshold/mxnet,larroy/mxnet,szha/mxnet,szha/mxnet,ForkedReposBak/mxnet,sxjscience/mxnet,tlby/mxnet,DickJC123/mxnet,yajiedesign/mxnet,zhreshold/mxnet,szha/mxnet,tlby/mxnet,leezu/mxnet,leezu/mxnet,tlby/mxnet,zhreshold/mxnet,yajiedesign/mxnet,tlby/mxnet,sxjscience/mxnet,zhreshold/mxnet,leezu/mxnet,leezu/mxnet,zhreshold/mxnet,DickJC123/mxnet,yajiedesign/mxnet,ForkedReposBak/mxnet,apache/incubator-mxnet,apache/incubator-mxnet,sxjscience/mxnet,ForkedReposBak/mxnet,eric-haibin-lin/mxnet,sxjscience/mxnet,sxjscience/mxnet,eric-haibin-lin/mxnet,ForkedReposBak/mxnet,yajiedesign/mxnet,leezu/mxnet,zhreshold/mxnet,tlby/mxnet,szha/mxnet,szha/mxnet,szha/mxnet,larroy/mxnet,sxjscience/mxnet,eric-haibin-lin/mxnet,leezu/mxnet,yajiedesign/mxnet,apache/incubator-mxnet,szha/mxnet,tlby/mxnet,sxjscience/mxnet,zhreshold/mxnet,zhreshold/mxnet,larroy/mxnet,larroy/mxnet,ForkedReposBak/mxnet,ForkedReposBak/mxnet,eric-haibin-lin/mxnet,leezu/mxnet,sxjscience/mxnet,leezu/mxnet,yajiedesign/mxnet,DickJC123/mxnet,eric-haibin-lin/mxnet,eric-haibin-lin/mxnet,tlby/mxnet,ForkedReposBak/mxnet,sxjscience/mxnet,tlby/mxnet,zhreshold/mxnet,apache/incubator-mxnet,yajiedesign/mxnet,eric-haibin-lin/mxnet,larroy/mxnet,DickJC123/mxnet,larroy/mxnet,tlby/mxnet,larroy/mxnet,eric-haibin-lin/mxnet,yajiedesign/mxnet,yajiedesign/mxnet,szha/mxnet,tlby/mxnet,leezu/mxnet