code: def test_generator(self):
      pipeline = tests.mocks.pipelines.Users()
      pipeline.stratify = "last_name"
      chunks = 0
      length = 0
      for chunk in pipeline.generator(
          pipeline.table_training,
          orient="row",
          encoded=True,
          stratify=False,
          chunksize=200,
      ):
          chunks += 1
          length += len(chunk.x)
      self.assertEqual(chunks, 4)
      self.assertEqual(length, 800)
  
      chunks = 0
      length = 0
      for chunk in pipeline.generator(
          pipeline.table_training,
          orient="row",
          encoded=True,
          stratify=True,
          chunksize=10,
      ):
          chunks += 1
          length += len(chunk.x)
      self.assertEqual(chunks, 80)
      self.assertEqual(length, 800)
  
      chunks = 0
      length = 0
      for chunk in pipeline.generator(
          pipeline.table_training, orient="column", encoded=True
      ):
          chunks += 1
          length += len(chunk.x)
      self.assertEqual(chunks, 5)
      self.assertEqual(length, 5 * 800)
  
file_path: lore/tests/unit/test_pipelines.py
imports: from __future__ import generators
  import unittest
  import pandas
  import tests.mocks.pipelines
label_desc: Use image node_id 10 for calling the TestLowMemory obj's underlying member method code with example usage: obj.test_generator() without return types