code: def test_normal_generator(self):
      all_sanity_batches = [4, 20, 100]
      for sanity_batches in all_sanity_batches:
          data = NormalSampler(num_of_data=1000)
          wrapper = _TruncatedDataLoader(
              dataloader=data, num_batches=sanity_batches
          )
          dataloader = iter(wrapper)
          mark = 0
          while True:
              try:
                  _data = next(dataloader)
              except StopIteration:
                  break
              mark += 1
          assert mark == sanity_batches
  
imports: from functools import reduce
  import pytest
  from fastNLP.core.controllers.utils.utils import _TruncatedDataLoader
  from tests.helpers.datasets.normal_data import NormalSampler
label_desc: Use image node_id 1 for calling the Test_WrapDataLoader obj's underlying member method code with example usage: obj.test_normal_generator() without return types