I want to pass my test dataset for inference for which I convert it into an nd array and pass it to the sagemaker endpoint. It works when I try to directly use the endpoint, som