Return True if the sub-array overlaps a subspace of the master array.
Parameters :
indices :sequence
Indices describing a subset of the master array. Each index is
either a slice object or a list. If the sequence is empty then
it is assumed that the master array is a scalar array.
Returns :
p_indices, shape :list, list or None, None
If the partition overlaps the indices then return a list of
indices which will subset the partition’s data to where it
overlaps the master indices and the subsetted partition’s
shape as a list. Otherwise return None,None.