<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def eval_permissions(self, token, resource_scopes_tuples=None, submit_request=False):
 """ Evaluates if user has permission for all the resource scope combinations. :param str token: client access token :param Iterable[Tuple[str, str]] resource_scopes_tuples: resource to access :param boolean submit_request: submit request if not allowed to access? rtype: boolean """

        permissions = self.get_permissions(
            token=token,
            resource_scopes_tuples=resource_scopes_tuples,
            submit_request=submit_request
        )

        res = []
        for permission in permissions.get('permissions', []):
            for scope in permission.get('scopes', []):
                ptuple = (permission.get('rsname'), scope)
                if ptuple in resource_scopes_tuples:
                    res.append(ptuple)

        return res == resource_scopes_tuples