def set_n_of_m(self, value=None):
if value is None:<EOL><INDENT>raise NullArgument()<EOL><DEDENT>if isinstance(value, bool):<EOL><INDENT>raise InvalidArgument('<STR_LIT>')<EOL><DEDENT>if value is not None and not isinstance(value, int):<EOL><INDENT>raise InvalidArgument('<STR_LIT>')<EOL><DEDENT>if self.get_n_of_m_metadata().is_read_only():<EOL><INDENT>raise NoAccess()<EOL><DEDENT>if not self.my_osid_object_form._is_valid_integer(value,<EOL>self.get_n_of_m_metadata()):<EOL><INDENT>raise InvalidArgument()<EOL><DEDENT>self.my_osid_object_form._my_map['<STR_LIT>'] = value<EOL>
stub