def add_attempts(self, attempts):
if attempts is None:<EOL><INDENT>raise NullArgument('<STR_LIT>')<EOL><DEDENT>if not self.my_osid_object_form._is_valid_integer(<EOL>attempts, self.get_attempts_metadata()):<EOL><INDENT>raise InvalidArgument('<STR_LIT>')<EOL><DEDENT>self.my_osid_object_form._my_map['<STR_LIT>'] = attempts<EOL>
stub