ChatGPT is capable writing working code in other contexts, for simple problems, but this isn’t that. This is pretending that some larger body of code exists, and then talking about it and showing plausible-seeming pieces of it. It wouldn’t stand up to serious scrutiny.