@utilities.arguments_not_none<EOL><INDENT>def create_grade(self, grade_form):<DEDENT>
<EOL>from dlkit.abstract_osid.grading.objects import GradeForm as ABCGradeForm<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if not isinstance(grade_form, ABCGradeForm):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>if grade_form.is_for_update():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>if self._forms[grade_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 grade_form.is_valid():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>grade_form._my_map['<STR_LIT>'] = ObjectId()<EOL>grade_system_id = Id(grade_form._my_map['<STR_LIT>']).get_identifier()<EOL>grade_system = collection.find_one(<EOL>{'<STR_LIT>': [{'<STR_LIT>': ObjectId(grade_system_id)},<EOL>{'<STR_LIT>' + self._catalog_name + '<STR_LIT>': {'<STR_LIT>': [str(self._catalog_id)]}}]})<EOL>grade_system['<STR_LIT>'].append(grade_form._my_map)<EOL>result = collection.save(grade_system)<EOL>self._forms[grade_form.get_id().get_identifier()] = CREATED<EOL>from .objects import Grade<EOL>return Grade(<EOL>osid_object_map=grade_form._my_map,<EOL>runtime=self._runtime,<EOL>proxy=self._proxy)<EOL>
Creates a new ``Grade``.

        arg:    grade_form (osid.grading.GradeForm): the form for this
                ``Grade``
        return: (osid.grading.Grade) - the new ``Grade``
        raise:  IllegalState - ``grade_form`` already used in a create
                transaction
        raise:  InvalidArgument - one or more of the form elements is
                invalid
        raise:  NullArgument - ``grade_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``grade_form`` did not originate from
                ``get_grade_form_for_create()``
        *compliance: mandatory -- This method must be implemented.*