class_docstr: Test case of invalid pipe interface 
docstr: target: test map() API for invalid scenario
  method: 1. Operator not exist   2. Link not exist
          3. Func not valid
  expected: raise exception
docstr_tok: ["target",":","test","map","(",")","API","for","invalid","scenario","method",":","1",".","Operator","not","exist","2",".","Link","not","exist","3",".","Func","not","valid","expected",":","raise","exception"]
code: def test_data_collection_map_invalid(self):
      """
      target: test map() API for invalid scenario
      method: 1. Operator not exist   2. Link not exist
              3. Func not valid
      expected: raise exception
      """
      # 1. Operator not exist
      try:
          towhee.pipe.input("path").map(
              "path", "img", ops.towhee.image_1()
          ).output("img")
      except RuntimeError as e:
          assert "failed" in str(e)
  
      # 2. Link not exist
      """
          t = towhee.pipe.input('path').map('path', 'img', ops.towhee.image_decode()).output('img')
          try:
              t('https://github.com/towhee-io/towhee/raw/main/towhee.png').get()
          except Exception as e:
              assert "image" in str(e)
          """
  
      # 3. Func not valid
      try:
          p = (
              towhee.pipe.input("a")
              .map("a", "b", lambda x: x + y)
              .output("b")
          )
          p(10).get()
      except Exception as e:
          assert "not" 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 TestPipeAPIsInvalid obj's underlying member method code with example usage: obj.test_data_collection_map_invalid() and returns: True