def add_choice(self, text, inline_region, name='<STR_LIT>', identifier=None):
choice_display_text = self._choice_text_metadata['<STR_LIT>'][<NUM_LIT:0>]<EOL>choice_display_text['<STR_LIT:text>'] = text<EOL>if identifier is None:<EOL><INDENT>identifier = str(ObjectId())<EOL><DEDENT>choice = {<EOL>'<STR_LIT:id>': identifier,<EOL>'<STR_LIT:text>': text,<EOL>'<STR_LIT:name>': name<EOL>}<EOL>if inline_region in self.my_osid_object_form._my_map['<STR_LIT>']:<EOL><INDENT>self.my_osid_object_form._my_map['<STR_LIT>'][inline_region].append(choice)<EOL><DEDENT>else:<EOL><INDENT>raise IllegalState('<STR_LIT>')<EOL><DEDENT>return choice<EOL>
stub