Tensorflow ragged constant with lstm

How to pass to tensorflow.ragged.constant to lstm in version 2.16

in version 2.16 it neither allowed to make the input shape = (None, 6) not making layers.Input(shape=(None, 6), ragged=True) because ragged is deprecated in that version.

any help please?