    def __iter__(self):
        """
        Iterate the DataCollection in the form of Entity.

        Examples:
            >>> from towhee.runtime.data_queue import DataQueue, ColumnType
            >>> from towhee.datacollection.data_collection import DataCollection
            >>> dq = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
            >>> dq.put(('a', 'b1'))
            True
            >>> dq.put(('a', 'b2'))
            True
            >>> dc = DataCollection(dq)
            >>> [i for i in dc]
            [<Entity dict_keys(['a', 'b'])>, <Entity dict_keys(['a', 'b'])>]
        """
        return iter(self._iterable)
Iterate the DataCollection in the form of Entity.

Examples:
>>> from towhee.runtime.data_queue import DataQueue, ColumnType
>>> from towhee.datacollection.data_collection import DataCollection
>>> dq = DataQueue([('a', ColumnType.SCALAR), ('b', ColumnType.QUEUE)])
>>> dq.put(('a', 'b1'))
True
>>> dq.put(('a', 'b2'))
True
>>> dc = DataCollection(dq)
>>> [i for i in dc]
[<Entity dict_keys(['a', 'b'])>, <Entity dict_keys(['a', 'b'])>]
towhee/datacollection/data_collection.py