code: public static INDArrayIndex[] fillIn(int[] shape, INDArrayIndex... indexes) {
          if (shape.length == indexes.length)
              return indexes;
  
          INDArrayIndex[] newIndexes = new INDArrayIndex[shape.length];
          System.arraycopy(indexes, 0, newIndexes, 0, indexes.length);
  
          for (int i = indexes.length; i < shape.length; i++) {
              newIndexes[i] = NDArrayIndex.interval(0, shape[i]);
          }
          return newIndexes;
  
      }
docs: Fill in the missing indices to be the
  same length as the original shape.
  <p/>
  Think of this as what fills in the indices for numpy or matlab:
  Given a which is (4,3,2) in numpy:
  <p/>
  a[1:3] is filled in by the rest
  to give back the full slice
  <p/>
  This algorithm fills in that delta
  
  @param shape   the original shape
  @param indexes the indexes to start from
  @return the filled in indices