@utilities.arguments_not_none<EOL><INDENT>def get_assessments_by_ids(self, assessment_ids):<DEDENT>
<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>object_id_list = []<EOL>for i in assessment_ids:<EOL><INDENT>object_id_list.append(ObjectId(self._get_id(i, '<STR_LIT>').get_identifier()))<EOL><DEDENT>result = collection.find(<EOL>dict({'<STR_LIT>': {'<STR_LIT>': object_id_list}},<EOL>**self._view_filter()))<EOL>result = list(result)<EOL>sorted_result = []<EOL>for object_id in object_id_list:<EOL><INDENT>for object_map in result:<EOL><INDENT>if object_map['<STR_LIT>'] == object_id:<EOL><INDENT>sorted_result.append(object_map)<EOL>break<EOL><DEDENT><DEDENT><DEDENT>return objects.AssessmentList(sorted_result, runtime=self._runtime, proxy=self._proxy)<EOL>
Gets an ``AssessmentList`` corresponding to the given ``IdList``.

        In plenary mode, the returned list contains all of the
        assessments specified in the ``Id`` list, in the order of the
        list, including duplicates, or an error results if an ``Id`` in
        the supplied list is not found or inaccessible. Otherwise,
        inaccessible ``Assessments`` may be omitted from the list and
        may present the elements in any order including returning a
        unique set.

        arg:    assessment_ids (osid.id.IdList): the list of ``Ids`` to
                retrieve
        return: (osid.assessment.AssessmentList) - the returned
                ``Assessment`` list
        raise:  NotFound - an ``Id was`` not found
        raise:  NullArgument - ``assessment_ids`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - assessment failure
        *compliance: mandatory -- This method must be implemented.*