class_docstr: Test case of invalid pipe interface 
docstr: target: test batch() API for invalid scenario
  method: input invalid type(not list)
  expected: raise exception
docstr_tok: ["target",":","test","batch","(",")","API","for","invalid","scenario","method",":","input","invalid","type","(","not","list",")","expected",":","raise","exception"]
code: def test_data_collection_batch_invalid(self):
      """
      target: test batch() API for invalid scenario
      method: input invalid type(not list)
      expected: raise exception
      """
      p = pipe.input("a").map("a", "b", lambda x: x + 1).output("b")
  
      # input 'int'
      try:
          p.batch(1)
      except Exception as e:
          assert "'int' object is not iterable" in str(e)
  
      # input 'str'
      try:
          p.batch("a")
      except Exception as e:
          assert 'can only concatenate str (not "int") to str' in str(e)
  
      # input 'dict'
      try:
          p.batch({"a": 1})
      except Exception as e:
          assert 'can only concatenate str (not "int") to str' in str(e)
  
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 9 for calling the TestPipeAPIsInvalid obj's underlying member method code with example usage: obj.test_data_collection_batch_invalid() without return types