input: Write a function to tokenize and pad text sequences using TensorFlow's Tokenizer and pad_sequences.
  assert tokenize_and_pad(['I love programming', 'Python is amazing']) == ([[1, 2], [3, 4, 5]], [[0, 1, 2], [3, 4, 5]])
  assert tokenize_and_pad(['TensorFlow is great', 'Machine learning is fun']) == ([[1, 2, 3], [4, 5, 6, 7]], [[0, 1, 2, 3], [4, 5, 6, 7]])
output: def tokenize_and_pad(texts):
      from tensorflow.keras.preprocessing.text import Tokenizer
      from tensorflow.keras.preprocessing.sequence import pad_sequences
  
      # Initialize the Tokenizer
      tokenizer = Tokenizer()
  
      # Fit the tokenizer on the texts
      tokenizer.fit_on_texts(texts)
  
      # Convert texts to sequences
      sequences = tokenizer.texts_to_sequences(texts)
  
      # Pad the sequences
      padded_sequences = pad_sequences(sequences)
  
      return sequences, padded_sequences