'Updates the version of course in the modulestore
\'course\' is an instance of CourseDescriptor for which we want
to update metadata.'

def update_course(self, course, user_id):

    with self.store.branch_setting(ModuleStoreEnum.Branch.draft_preferred, course.id):
        self.store.update_item(course, user_id)
    updated_course = self.store.get_course(course.id)
    return updated_course
