Try asking it to generate a high-level plan of how it's going to do the conversion first, then to generate function definitions for the new functions, then have it generate tests for the new functions, then actually write them, while giving it the output of the tests.
It's not like people just one-shot a whole module of code, why would LLMs?
It's not like people just one-shot a whole module of code, why would LLMs?