def METHOD_NAME(self, account, rse, bytes_, locality):
    """
    Sets an account limit for a given limit scope.
    :param account: The name of the account.
    :param rse:     The rse name.
    :param bytes_:   An integer with the limit in bytes.
    :param locality: The scope of the account limit. 'local' or 'global'.
    :return:        True if quota was created successfully else False.
    """
    if locality == 'local':
        return self.set_local_account_limit(account, rse, bytes_)
    elif locality == 'global':
        return self.set_global_account_limit(account, rse, bytes_)
    else:
        from rucio.common.exception import UnsupportedOperation
        raise UnsupportedOperation('The provided scope (%s) for the account limit was invalid' % locality)