human
I am working on the file "Learning_Cython_video/Chapter07/cpp-support/cpp-support.ipynb".
The first task is:
Auto-converting TO Python objects
Can you write Python code for it?

=====
Write me a the Python code you requested?
assistant
#Here is the Python code you requested.

%%cython
# cython: language_level = 3
# distutils: language = c++

from libcpp.vector cimport vector
from libcpp.list cimport list
from libcpp.map cimport map
from libcpp.set cimport set
from libcpp.pair cimport pair
from libcpp.deque cimport deque
from libcpp.queue cimport queue

def try_vector():
    cdef vector[int] x
    cdef int i, n = 5
    for i in range(n):
        x.push_back(i)
    cdef object o = x
    print(type(o))
    
def try_list():
    cdef list[int] x
    cdef int i, n = 5
    for i in range(n):
        x.push_back(i)
    cdef object o = x
    print(type(o))
    
def try_map():
    cdef map[int, int] x
    cdef int i, n = 5
    for i in range(n):
        x.insert([i, i])
    cdef object o = x
    print(type(o))
    
def try_set():
    cdef set[int] x
    cdef int i, n = 5
    for i in range(n):
        x.insert(i)
    cdef object o = x
    print(type(o))    
    
def try_pair():
    cdef pair[int, int] x
    x.first = 1
    x.second = 2
    cdef object o = x
    print(type(o))  
    
# def try_deque():
#     cdef deque[int] x
#     cdef int i, n = 5
#     for i in range(n):
#         x.push_front(i)
#     cdef object o = x
#     print(type(o))  
    
# def try_queue():
#     cdef queue[int] x
#     cdef int i, n = 5
#     for i in range(n):
#         x.push(i)
#     cdef object o = x
#     print(type(o))  

try_vector()
try_list()
try_map()
try_set()
try_pair()