def get_accounts_for_institution(accounts, institution):
    """Provides the accounts available from the given institution.

    Args:
        accounts: array of accounts to filter by institution
    Returns:
        array of 0..* accounts provided by given institution
    """

    institution_accounts = []
    for account in accounts:
        if account.institution == institution:
            institution_accounts.append(account)
    return institution_accounts