<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_choice(self, choice_id, inline_region):
 """remove a choice, given the id"""

        if inline_region in self.my_osid_object_form._my_map['choices']:
            updated_choices = []
            for choice in self.my_osid_object_form._my_map['choices'][inline_region]:
                if choice['id'] != choice_id:
                    updated_choices.append(choice)
            self.my_osid_object_form._my_map['choices'][inline_region] = updated_choices