code: def test_serial(self):
      dataset = lambda _: ((i, i + 1) for i in range(10))
      batches = data.Serial(dataset, data.Shuffle(3), data.Batch(10))
      batch = next(batches())
      self.assertLen(batch, 2)
      self.assertEqual(batch[0].shape, (10,))
  
imports: import itertools
  import os
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from trax import data
label_desc: Use image node_id 7 for calling the InputsTest obj's underlying member method code with example usage: obj.test_serial() without return types