def set_values(self, choice_ids):
<EOL>organized_regions = {}<EOL>for region, choice_ids in choice_ids.items():<EOL><INDENT>organized_choice_ids = []<EOL>for choice in choice_ids:<EOL><INDENT>original_region_choices = self._original_choice_order[region]<EOL>choice_obj = [c for c in original_region_choices if c['<STR_LIT:id>'] == choice['<STR_LIT:id>']][<NUM_LIT:0>]<EOL>organized_choice_ids.append(choice_obj)<EOL><DEDENT>organized_regions[region] = organized_choice_ids<EOL><DEDENT>self.my_osid_object._my_map['<STR_LIT>'] = organized_regions<EOL>
assume choice_ids is a dict of {
            region: choiceIds
         }, like: {
            "REGION_1": ["57978959cdfc5c42eefb36d1", "57978959cdfc5c42eefb36d0",
                         "57978959cdfc5c42eefb36cf", "57978959cdfc5c42eefb36ce"]
         }