完成is_teacher decorator