class_docstr: Test case of valid data collection interface 
docstr: target: test batch() API for DataCollection 
  method: create an iter data collection and batch it
  expected: return batch successfully
docstr_tok: ["target",":","test","batch","(",")","API","for","DataCollection","method",":","create","an","iter","data","collection","and","batch","it","expected",":","return","batch","successfully"]
code: def test_data_collection_batch_inter(self):
      """
      target: test batch() API for DataCollection
      method: create an iter data collection and batch it
      expected: return batch successfully
      """
      data_size = 6
      data = iter(range(data_size))
      dc = towhee.dc(data)
      size = 3
      result = [list(batch) for batch in dc.batch(size, drop_tail=True)]
      assert len(result) == int(data_size / size)
  
      return True
  
imports: import sys
  import towhee
  import time
  import threading
  import numpy
  import random
  import operator
  from common import common_func
  from towhee import pipe, ops
label_desc: Use image node_id 14 for calling the TestOldDataCollectionAPIsValid obj's underlying member method code with example usage: obj.test_data_collection_batch_inter() and returns: True