What are the equivalent manner for using texts_to_sequences?

what are the equivalent manner for using
seq = tokenizer.texts_to_sequences([desc])[0]

in bert