>> It is very naive to think that AI programs in most of universities is anything other than writing code and pretty lousy one.
Are you speaking from experience? Because my own experience from my degree and Master's AI courses and lectures is completely different to what you describe. Particularly during my Master's, code was only incidental; the meat and potatoes of each and every lecture was theory.
It depends of course on the quality of the teaching in a given institution, but, for instance, you can find here the lecture notes from Oxford's Deep NLP course:
https://github.com/oxford-cs-deepnlp-2017/lectures
As you will see, it's anything but just code, or lousy such. Of course, that's Oxford, their teaching is world-class- but most AI courses I've found on the internet are similar in scope.
Really, it's pointless trying to teach AI with "just code" - because in AI you can't really code much, unless you understand the theory.
>> In 5 years today's ML/AI PhDs would be in the same peculiar position as PhDs of genetic sequencing.
I think what you're saying is that in 5 years, people knowing Tensor Flow or Torch will be a dime a dozen.
Perhaps- but someone will still need to figure out some way to acquire new knowledge.
Also, it bears repeating that AI is not just statistical machine learning and statistical machine learning itself is not just deep learning. AI is a broad field with communities focused on many different subjects. Just as an example you can find information on, easily, try probabilistic programming.