def get_account_from_fund_code(client, fund_code):
    """Get account number based on a fund code."""
    if fund_code is None:
        account = "No fund code found"
    else:
        response = client.get_fund_by_code(fund_code)
        account = response.get("fund", [{}])[0].get("external_id")
    return account