def _validate_project(project, parent):
    if parent is None:
        if project is None:
            raise ValueError("A Key must have a project set.")

    return project
Creates a new task that will call *f* *rate* times per second. The main difference with :func:`interval` is that
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/datastore/key.py/_validate_project--crossover with--dataset/ETHPy150Open concurrence/concurrence/lib/concurrence/core.py/Tasklet.rate