I seriously dont understand people being shocked by how much chatGPT knows. It contains a slightly-compressed database of all the text OpenAI could get their hands on. Of course it knows what your python function does; its got the whole of StackExchange.