def METHOD_NAME():
    x = tf.data.Dataset.from_tensor_slices(np.array(["a b c", "b b c"])).batch(
        32
    )
    adapter = input_adapters.TextAdapter()
    x = adapter.adapt(x, batch_size=32)
    assert data_utils.dataset_shape(x).as_list() == [None]
    assert isinstance(x, tf.data.Dataset)