@utilities.arguments_not_none<EOL><INDENT>@utilities.handle_simple_sequencing<EOL>def create_assessment_part_for_assessment_part(self, assessment_part_form):<DEDENT>
<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if not isinstance(assessment_part_form, ABCAssessmentPartForm):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>if assessment_part_form.is_for_update():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>if self._forms[assessment_part_form.get_id().get_identifier()] == CREATED:<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise errors.Unsupported('<STR_LIT>')<EOL><DEDENT>if not assessment_part_form.is_valid():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>insert_result = collection.insert_one(assessment_part_form._my_map)<EOL>self._forms[assessment_part_form.get_id().get_identifier()] = CREATED<EOL>result = objects.AssessmentPart(<EOL>osid_object_map=collection.find_one({'<STR_LIT>': insert_result.inserted_id}),<EOL>runtime=self._runtime,<EOL>proxy=self._proxy)<EOL>return result<EOL>
Creates a new assessment part.

        arg:    assessment_part_form
                (osid.assessment.authoring.AssessmentPartForm):
                assessment part form
        return: (osid.assessment.authoring.AssessmentPart) - the new
                part
        raise:  IllegalState - ``assessment_part_form`` already used in
                a create transaction
        raise:  InvalidArgument - ``assessment_part_form`` is invalid
        raise:  NullArgument - ``assessment_part_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure occurred
        raise:  Unsupported - ``assessment_part_form`` did not originate
                from ``get_assessment_part_form_for_create_for_assessmen
                t_part()``
        *compliance: mandatory -- This method must be implemented.*