@utilities.arguments_not_none<EOL><INDENT>def create_question(self, question_form):<DEDENT>
collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if not isinstance(question_form, ABCQuestionForm):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>if question_form.is_for_update():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>if self._forms[question_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 question_form.is_valid():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>item_id = Id(question_form._my_map['<STR_LIT>']).get_identifier()<EOL>question_form._my_map['<STR_LIT>'] = ObjectId(item_id)<EOL>item = collection.find_one({'<STR_LIT>': [{'<STR_LIT>': ObjectId(item_id)},<EOL>{'<STR_LIT>' + self._catalog_name + '<STR_LIT>': {'<STR_LIT>': [str(self._catalog_id)]}}]})<EOL>question_form._my_map['<STR_LIT>']['<STR_LIT:text>'] = item['<STR_LIT>']['<STR_LIT:text>']<EOL>question_form._my_map['<STR_LIT:description>']['<STR_LIT:text>'] = item['<STR_LIT:description>']['<STR_LIT:text>']<EOL>if item['<STR_LIT>'] is None:<EOL><INDENT>item['<STR_LIT>'] = question_form._my_map<EOL><DEDENT>else:<EOL><INDENT>item['<STR_LIT>'] = question_form._my_map  <EOL><DEDENT>collection.save(item)<EOL>self._forms[question_form.get_id().get_identifier()] = CREATED<EOL>return objects.Question(osid_object_map=question_form._my_map,<EOL>runtime=self._runtime,<EOL>proxy=self._proxy)<EOL>
Creates a new ``Question``.

        arg:    question_form (osid.assessment.QuestionForm): the form
                for this ``Question``
        return: (osid.assessment.Question) - the new ``Question``
        raise:  AlreadyExists - a question already exists for this item
        raise:  IllegalState - ``question_form`` already used in a
                create transaction
        raise:  InvalidArgument - one or more of the form elements is
                invalid
        raise:  NullArgument - ``question_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure occurred
        raise:  Unsupported - ``question_form`` did not originate from
                ``get_question_form_for_create()``
        *compliance: mandatory -- This method must be implemented.*