def is_masquerading_as_student(user, course_key):
 return (get_masquerade_role(user, course_key) == 'student')

def is_masquerading_as_student ( user , course_key ) : return ( get_masquerade_role ( user , course_key ) == 'student' )
returns true if the user is a staff member masquerading as a student .