Have to admit that I find ChatGPT's ability to provide customized code examples uncanny.
It's often a good starting point. Sometimes there isn't much to change if at all.
It can even design some custom algorithm.
When you know what you're doing, it's a very nice helper.