    def test_data_collection_rolling_inter(self):
        """
        target: test rolling() API for DataCollection 
        method: create an iter data collection and rolling it
        expected: return rolling successfully
        """
        data_size = 6
        data = iter(range(data_size))
        dc = towhee.dc(data)
        size = 3
        result = [list(batch) for batch in dc.rolling(size, drop_tail=False)]
        assert len(result) == data_size

        return True
target: test rolling() API for DataCollection
method: create an iter data collection and rolling it
expected: return rolling successfully
tests/testcases/test_data_collection.py