def c_short_2darr(numpy_arr):
    c_short_p = POINTER(c_short)
arr = (c_short_p * len(numpy_arr))()
for i in range(len(numpy_arr)):
    arr[i] = (c_short * len(numpy_arr[i]))()
for j in range(len(numpy_arr[i])):
    arr[i][j] = numpy_arr[i][j]
return arr
Convert a 2D numpy array to C++ short**?