I take your code and I compress it in a tar.gz file. Il call that file "the model".
Then I ask an algorithm (Gzip) to infer some code using "the model".
The algorithm (gzip) just learned how to code by reading your code. It just happened to have it memorized in its model.