def set_cognitive_process(self, grade_id=None):
if grade_id is None:<EOL><INDENT>raise NullArgument()<EOL><DEDENT>metadata = Metadata(**settings.METADATA['<STR_LIT>'])<EOL>if metadata.is_read_only():<EOL><INDENT>raise NoAccess()<EOL><DEDENT>if self._is_valid_input(grade_id, metadata, array=False):<EOL><INDENT>self._my_map['<STR_LIT>'] = str(grade_id)<EOL><DEDENT>else:<EOL><INDENT>raise InvalidArgument<EOL><DEDENT>
Sets the cognitive process.

        arg:    gradeId (osid.id.Id): the new cognitive process
        raise:  INVALID_ARGUMENT - gradeId is invalid
        raise:  NoAccess - gradeId cannot be modified
        raise:  NullArgument - gradeId is null
        compliance: mandatory - This method must be implemented.