def ensure_db(db_name, *args, **kwargs):
    conn = r.connect()

    try:
        r.db_create(db_name, *args, **kwargs).run(conn)
    except r.RqlRuntimeError:
        pass  # Ignore DB already created
Extract all doctest examples from the given string, and
dataset/ETHPy150Open vim-awesome/vim-awesome/db/util.py/ensure_db--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/test/_doctest.py/DocTestParser.get_doctest