code: public static INDArrayIndex[] createCoveringShape(int[] shape) {
          INDArrayIndex[] ret = new INDArrayIndex[shape.length];
          for (int i = 0; i < ret.length; i++) {
              ret[i] = NDArrayIndex.interval(0, shape[i]);
          }
          return ret;
      }
docs: Creates an index covering the given shape
  (for each dimension 0,shape[i])
  @param shape the shape to cover
  @return the ndarray indexes to cover