def METHOD_NAME(course_key):
    """ Gets course descriptor from modulestore """
    descriptor = modulestore().get_course(course_key, depth=1)
    if descriptor is None:
        raise CourseUpdateDoesNotExist(
            f'Course {course_key} not found.'
        )
    return descriptor