def _ensure_element(tup, elem):
    try:
        return tup, tup.index(elem)
    except ValueError:
        return tuple(chain(tup, (elem,))), len(tup)
Deploy OpenStack cloud and return credentials.
dataset/ETHPy150Open quantopian/zipline/zipline/pipeline/expression.py/_ensure_element--crossover with--dataset/ETHPy150Open openstack/rally/rally/deployment/engine.py/Engine.deploy