code: public SDVariable reverseSequence(String name, SDVariable x, SDVariable seq_lengths, int seqDim, int batchDim) {
          SDVariable ret = f().reverseSequence(x, seq_lengths, seqDim, batchDim);
          return updateVariableNameAndReference(ret, name);
      }
docs: Reverse sequence op: for each slice along dimension seqDimension, the first seqLength values are reversed
  
  @param name        Name of the output variable
  @param x           Input variable
  @param seq_lengths Length of the sequences
  @param seqDim      Sequence dimension
  @param batchDim    Batch dimension
  @return Reversed sequences