arr
indices
indexing_with_clipping(arr, indices, clipping_value=0)
indexing_with_clipping(arr, indices, clipping_value=1)
indexing_with_clipping(arr, indices, clipping_value=2)
indexing_with_clipping(arr, indices, clipping_value=3)
Numpy 2D array indexing without out of bound and with clipping value