class_docstr: Test case of invalid pipe interface 
docstr: target: test filter() API for invalid scenario
  method: filter_columns not exist, func invalid
  expected: raise exception
docstr_tok: ["target",":","test","filter","(",")","API","for","invalid","scenario","method",":","filter_columns","not","exist",",","func","invalid","expected",":","raise","exception"]
code: def test_data_collection_filter_invalid(self):
      """
      target: test filter() API for invalid scenario
      method: filter_columns not exist, func invalid
      expected: raise exception
      """
      try:
          towhee.pipe.input("a").filter(
              "a", "b", lambda x: x < 0
          ).output("b")
      except Exception as e:
          assert "missing" in str(e)
  
      try:
          p = (
              towhee.pipe.input("a")
              .filter("a", "b", "a", lambda x: x + y)
              .output("b")
          )
          p(10).get()
      except Exception as e:
          assert "not defined" 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 4 for calling the TestPipeAPIsInvalid obj's underlying member method code with example usage: obj.test_data_collection_filter_invalid() and returns: True