code: public static INDArrayIndex[] resolve(INDArray arr, INDArrayIndex... intendedIndexes) {
          return resolve(NDArrayIndex.allFor(arr), intendedIndexes);
      }
docs: Given an all index and
  the intended indexes, return an
  index array containing a combination of all elements
  for slicing and overriding particular indexes where necessary
  @param arr the array to resolve indexes for
  @param intendedIndexes the indexes specified by the user
  @return the resolved indexes (containing all where nothing is specified, and the intended index
  for a particular dimension otherwise)