def get_locations(twitter_data: dict) -> dict:
    """
    Returns a dictionary where keys are users' accounts and the values are their locations.
    """
    locations_dct = dict()
    for user in twitter_data['users']:
        if user['location']:
            locations_dct.update({user['screen_name']: user['location']})
    return locations_dct