Will AI Make School Obsolete?

Is AI going to be the end of teaching and school? There is no doubt that there are some things AI can do better than a human being. So what becomes the roll of school or will AI make school obsolete?