> I often find myself debugging great-looking code that makes up methods or functions.
Are you using an IDE? I do some training of models for a few companies and yes, the models all do this at lot, but it is pretty obvious within 10 seconds of pasting the code into PyCharm.
I typically work within Jupyter Notebooks since it’s easier to build tutorials with text and markdown. But I agree: even looking at the code output I can tell almost immediately it’s made up.