I'm not sure what you're trying to do here? Could you show the code? (And the ChatGPT query if at all possible!) My experience generating code with ChatGPT - particularly MicroPython code - has been...unimpressive.