def to_names(scope):
    return [
        name
        for (name, value) in SCOPE_NAME_DICT.iteritems()
        if check(value, scope)
    ]

# Keep it compatible
Returns a list of scope names as defined in
dataset/ETHPy150Open caffeinehit/django-oauth2-provider/provider/scope.py/to_names