Implementing Keras LSTM Feature using DL4J

How to implement “return sequence” in DL4J? (Reference- Keras LSTM framework https://keras.io/api/layers/recurrent_layers/lstm/)