How can one implement multilayered LSTM with LSTMCell module?

The LSTM module has a parameter num_layers which enables us to create multilayered RNNs. Is there a way to connect LSTMCell modules together to get a similar effect, and what is the right way to do it?

for LSTMCell modules you will essentially do this manually with a python for-loop.