    def __getitem__(self, index: int):
        """
        Get the item with given index.

        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
            >>> dc = DataCollection(dq)
            >>> dc[0]
            <Entity dict_keys(['a', 'b'])>
        """
        return self._iterable[index]
Get the item with given index.

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
>>> dc = DataCollection(dq)
>>> dc[0]
<Entity dict_keys(['a', 'b'])>
towhee/datacollection/data_collection.py