def is_masquerading_as_specific_student(user, course_key):
 course_masquerade = get_course_masquerade(user, course_key)
 return bool((course_masquerade and course_masquerade.user_name))

def is_masquerading_as_specific_student ( user , course_key ) : course_masquerade = get_course_masquerade ( user , course_key ) return bool ( ( course_masquerade and course_masquerade . user_name ) )
returns whether the user is a staff member masquerading as a specific student .