code: def test_adapt_flow(self):
      max_tokens = 5000
      max_len = 4
      layer = layers.TextVectorization(
          max_tokens=max_tokens,
          output_mode="int",
          output_sequence_length=max_len,
      )
      layer.adapt(["foo bar", "bar baz", "baz bada boom"])
      input_data = [["foo qux bar"], ["qux baz"]]
      output = layer(input_data)
      self.assertTrue(backend.is_tensor(output))
      self.assertAllClose(
          output, np.array([[4, 1, 3, 0], [1, 2, 0, 0]])
      )
  
file_path: keras/keras/layers/preprocessing/text_vectorization_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow import data
  from keras import backend
  from keras import layers
  from keras import models
  from keras import testing
label_desc: Use image node_id 2 for calling the TextVectorizationTest obj's underlying member method code with example usage: obj.test_adapt_flow() without return types