def get_or_404(*args, **kwargs):
    try:
        if len(args) == 1:
            # A Key or encoded Key is the single argument.
            obj = db.get(args[0])
        else:
            # Build a key using all arguments.
            obj = db.get(db.Key.from_path(*args, **kwargs))

        if obj:
            return obj
    except (db.BadArgumentError, db.BadKeyError):
        # Falling through to raise the NotFound.
        pass

    abort(404)
Returns the name of a random key from each server in a dictionary
dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/db/__init__.py/get_or_404--crossover with--dataset/ETHPy150Open gmr/mredis/mredis/client.py/MRedis.randomkey