class_docstr: Test case of invalid data collection interface 
docstr: target: test data collection APIs for invalid scenario
  method: call APIs with not supported data types
  expected: raise exception
docstr_tok: ["target",":","test","data","collection","APIs","for","invalid","scenario","method",":","call","APIs","with","not","supported","data","types","expected",":","raise","exception"]
code: def test_data_collection_API_not_supported_type(self, API_name):
      """
      target: test data collection APIs for invalid scenario
      method: call APIs with not supported data types
      expected: raise exception
      """
      if API_name in [
          "filter",
          "batch",
          "rolling",
          "pmap",
          "map",
          "mmap",
      ]:
          return True
      not_support_datas = ["string", {1, "s", 2, 3}]
      API = eval("DataCollection.%s" % API_name)
      for not_support_data in not_support_datas:
          try:
              dc = API(not_support_data)
          except Exception as e:
              assert "no attribute" in str(e)
  
      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 2 for calling the TestDataCollectionAPIsInvalid obj's underlying member method code with example usage: obj.test_data_collection_API_not_supported_type(API_name) and returns: True, True