'Get quotas.
A helper method which retrieves the quotas for the specific
resources identified by keys, and which apply to the current
context.
:param context: The request context, for access checks.
:param resources: A dictionary of the registered resources.'

def _get_quotas(self, context, resources):

    quotas = {}
    for resource in resources.values():
        quotas[resource.name] = resource.default
    return quotas
