def parse_institution_address(address, city, state_province,<EOL>country, postal_code, country_code):
address_list = force_list(address)<EOL>state_province = match_us_state(state_province) or state_province<EOL>postal_code = force_list(postal_code)<EOL>country = force_list(country)<EOL>country_code = match_country_code(country_code)<EOL>if isinstance(postal_code, (tuple, list)):<EOL><INDENT>postal_code = '<STR_LIT:U+002CU+0020>'.join(postal_code)<EOL><DEDENT>if isinstance(country, (tuple, list)):<EOL><INDENT>country = '<STR_LIT:U+002CU+0020>'.join(set(country))<EOL><DEDENT>if not country_code and country:<EOL><INDENT>country_code = match_country_name_to_its_code(country)<EOL><DEDENT>if not country_code and state_province and state_province in us_state_to_iso_code.values():<EOL><INDENT>country_code = '<STR_LIT>'<EOL><DEDENT>return {<EOL>'<STR_LIT>': force_list(city),<EOL>'<STR_LIT>': country_code,<EOL>'<STR_LIT>': address_list,<EOL>'<STR_LIT>': postal_code,<EOL>'<STR_LIT:state>': state_province,<EOL>}<EOL>
Parse an institution address.