code: def test_tf_ragged(self):
      x = tf.ragged.constant(
          [[1, 2], [1, 2, 3], [1, 2], [1], []], "float64"
      )
      y = np.ones((5,))
  
      adapter = array_data_adapter.ArrayDataAdapter(
          x,
          y=y,
          sample_weight=None,
          batch_size=2,
          steps=None,
          shuffle=False,
      )
  
      self.assertEqual(adapter.num_batches, 3)
      self.assertEqual(adapter.batch_size, 2)
      self.assertEqual(adapter.has_partial_batch, True)
      self.assertEqual(adapter.partial_batch_size, 1)
  
      x, y = next(adapter.get_numpy_iterator())
      self.assertEqual(x.dtype, backend.floatx())
      self.assertIsInstance(x, tf.RaggedTensor)
      self.assertEqual(x.shape, (2, None))
  
file_path: keras/keras/trainers/data_adapters/array_data_adapter_test.py
imports: import numpy
  import pandas
  import pytest
  import tensorflow
  from absl.testing import parameterized
  from keras import backend
  from keras import testing
  from keras.trainers.data_adapters import array_data_adapter
label_desc: Use image node_id 8 for calling the TestArrayDataAdapter obj's underlying member method code with example usage: obj.test_tf_ragged() without return types