Isn't "Code you don't understand" the definition of AI/ML?
The art and practice of programming didn't change much over the last 50 years. 50 years from now, though, it will be utterly unrecognizable.
We don't need to understand the process to evaluate the output in this case. Bad code is bad code no matter who/what wrote it.