    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)
target: test batch() API for invalid scenario
method: input invalid type(not list)
expected: raise exception
tests/testcases/test_data_collection.py