    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
target: test map() API for invalid scenario
method: 1. Operator not exist   2. Link not exist
3. Func not valid
expected: raise exception
tests/testcases/test_data_collection.py