def set_session(backend_name, **options):

    global _default_session

    if not _default_session:
        _default_session = {}

    if _default_session in backend_name:
        pool = _default_session.get(backend_name)
    else:
        pool = ConnectionPool(factory=Connection,
                backend=backend_name, **options)
        _default_session[backend_name] = pool
    return pool
dataset/ETHPy150Open benoitc/restkit/restkit/session.py/set_session/swapped operands of `in`