code: public static INDArrayIndex[] nTimes(INDArrayIndex copy, int n) {
          INDArrayIndex[] ret = new INDArrayIndex[n];
          for (int i = 0; i < n; i++) {
              ret[i] = copy;
          }
  
          return ret;
      }
docs: Repeat a copy of copy n times
  @param copy the ndarray index to copy
  @param n the number of times to copy
  @return an array of length n containing copies of
  the given ndarray index