def METHOD_NAME(student, course_key):
    """
    Determines if a learner is enrolled in a given course-run.
    """
    log.info(f"Checking if {student.id} is enrolled in course {course_key}")
    return CourseEnrollment.is_enrolled(student, course_key)