int MXNDArrayGetStorageType(NDArrayHandle handle, int
*out_storage_type) { // [0]
API_BEGIN();
NDArray *arr = static_cast<NDArray*>(handle);
if (!arr->is_none()) { // [1]
*out_storage_type = arr->storage_type(); // [2]
} else {
*out_storage_type = kUndefinedStorage;
}
API_END();
}