<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def where_am_i():
 """ high level function that can estimate where user is based on predefined setups. """

    locations = {'Work':0, 'Home':0}
    for ssid in scan_for_ssids():
        #print('checking scanned_ssid ', ssid)
        for l in logged_ssids:
            #print('checking logged_ssid ', l)
            if l['name'] == ssid:
                locations[l['location']] += 1
                #print('MATCH')
    print('Where Am I: SSIDS Matching Home = ', locations['Home'], ' SSIDs matching Work = ', locations['Work'])
    
    return max(locations.keys(), key=lambda k: locations[k])