code: def process_sequence(X, textgenrnn, new_tokenizer):
      X = new_tokenizer.texts_to_sequences(X)
      X = sequence.pad_sequences(
          X, maxlen=textgenrnn.config["max_length"]
      )
  
      return X
  
imports: import numpy
  from tensorflow.keras.preprocessing import sequence
  from tensorflow.keras.preprocessing.text import Tokenizer
  from .utils import textgenrnn_encode_cat
label_desc: Use image node_id 2 for calling a global function with example usage: process_sequence(X, textgenrnn, new_tokenizer) and returns: X