code: public static INDArrayIndex[] rangeOfLength(INDArrayIndex[] indexes) {
          INDArrayIndex[] indexesRet = new INDArrayIndex[indexes.length];
          for (int i = 0; i < indexes.length; i++)
              indexesRet[i] = NDArrayIndex.interval(0, indexes[i].length());
          return indexesRet;
      }
docs: Create a range based on the given indexes.
  This is similar to create covering shape in that it approximates
  the length of each dimension (ignoring elements) and
  reproduces an index of the same dimension and length.
  
  @param indexes the indexes to create the range for
  @return the index ranges.