code: def test_adapt_flow(self):
      layer = layers.Discretization(num_bins=4)
      layer.adapt(
          np.random.random((32, 3)),
      )
      output = layer(np.array([[0.0, 0.1, 0.3]]))
      self.assertTrue(output.dtype, "int32")
  
file_path: keras/keras/layers/preprocessing/discretization_test.py
imports: import os
  import numpy
  import pytest
  from absl.testing import parameterized
  from tensorflow import data
  from keras import backend
  from keras import layers
  from keras import models
  from keras import testing
  from keras.saving import saving_api
label_desc: Use image node_id 2 for calling the DiscretizationTest obj's underlying member method code with example usage: obj.test_adapt_flow() without return types