I tested the ChatGPT capacity for writing utility functions for basic image analysis. These are the type of tasks I give to an undergrad or first-year PhD student in materials sciences. It made some of the same mistakes a student usually does, but overall did pretty good