If you are using it to write whole complex functions thatare the same as other people's, I guess that is copying.
But if you do the second thing you are not a great dev, and would have probably ended up copy pasting it anyway.
I think the first use case is far more common, and creating boilerplate that is so generic you could never really attribute it anyway.