python-gatekeeper/helpers.py
def resolve_dataset(dataset_name):
    """
    Authenticates datasets: here we would call out to the database to validate the dataset,
    but in the interests of simplicity, we'll check that it's one of a few hardcoded values.
    """
    for dataset in KNOWN_DATASETS:
        if dataset_name == dataset.name:
            return dataset
    raise DatasetLookupFailure

    Authenticates datasets: here we would call out to the database to validate the dataset,
    but in the interests of simplicity, we'll check that it's one of a few hardcoded values.
    
Authenticates datasets: here we would call out to the database to validate the dataset,
but in the interests of simplicity, we'll check that it's one of a few hardcoded values.
Authenticates datasets : here we would call out to the database to validate the dataset but in the interests of simplicity we ' ll check that it ' s one of a few hardcoded values .
def resolve_dataset(dataset_name):
    for dataset in KNOWN_DATASETS:
        if dataset_name == dataset.name:
            return dataset
    raise DatasetLookupFailure
def resolve_dataset ( dataset_name ) : for dataset in KNOWN_DATASETS : if dataset_name == dataset . name : return dataset raise DatasetLookupFailure
Authenticates datasets: here we would call out to the database to validate the dataset,
but in the interests of simplicity, we'll check that it's one of a few hardcoded values.
Authenticates datasets : here we would call out to the database to validate the dataset but in the interests of simplicity we ' ll check that it ' s one of a few hardcoded values .
"""
    Authenticates datasets: here we would call out to the database to validate the dataset,
    but in the interests of simplicity, we'll check that it's one of a few hardcoded values.
    """
dataset_name