@utilities.arguments_not_none<EOL><INDENT>def set_assessments(self, assessment_ids):<DEDENT>
<EOL>if not isinstance(assessment_ids, list):<EOL><INDENT>raise errors.InvalidArgument()<EOL><DEDENT>if self.get_assessments_metadata().is_read_only():<EOL><INDENT>raise errors.NoAccess()<EOL><DEDENT>idstr_list = []<EOL>for object_id in assessment_ids:<EOL><INDENT>if not self._is_valid_id(object_id):<EOL><INDENT>raise errors.InvalidArgument()<EOL><DEDENT>idstr_list.append(str(object_id))<EOL><DEDENT>self._my_map['<STR_LIT>'] = idstr_list<EOL>
Sets the assessments.

        arg:    assessment_ids (osid.id.Id[]): the assessment ``Ids``
        raise:  InvalidArgument - ``assessment_ids`` is invalid
        raise:  NullArgument - ``assessment_ids`` is ``null``
        raise:  NoAccess - ``Metadata.isReadOnly()`` is ``true``
        *compliance: mandatory -- This method must be implemented.*