No, that’s learning.
Similarly here someone thought that watching YouTube videos of lectures is cheating!
The fact that you can’t seem to tell what is cheating and what is education is… very telling.
If the assignment does permit you to use a certain library and you use it, I don't see why the instructor would complain.
If it's ambiguous, then I would possibly ask for clarification.
Personally I would expect an assignment using a language like Python, Java, or C++ (for example) to permit use of the standard library (including STL in the case of C++) unless otherwise specified, or unless it was clear that the assignment was to reimplement some function or algorithm which is already part of the standard library.
Exams were done in classrooms, with multiple people (usually TAs) watching, pen, paper, usually notes/book or even old exams were allowed (or at minimum 1 sheet of whatever you wanted on). Yeah sure, some minimal cheating was still possible, but not a lot.
I think we greatly need to reduce the scope of what we test and require for a job. Maybe create smaller project based certifications that prove you know X.
I don't need a graduate to know that much in software, they already know very little of practical utility straight out of uni. Other professions are different and you need to know more fundamentals before doing something productive.
Cheating in next to universal. You didn't just cheat with people you knew. You could go ask any member of the year above for assignment solutions and quiz/test answer keys. You could ask any member of the prior section for what was on the quiz. Student union ran a solutions bank for past tests.
And yeah, plenty of us had Chegg.
Why do we do this? Very few of us went to university to learn. We wanted an access pass to the upper middle class.
Same thing with the students I mentor for remote interviews. I offer to help them cheat on them by sitting on a second webcam and feeding them the answers. Only one has turned me down, and not for moral reasons, but because they fear getting caught.
If you offered to just give everyone an A for a given course, maybe 10% of students would attend.
I am not sure that businesses care all that much, because the same skills work in companies too and it is considered legitimate outside of the academic world to take the work of others. In school, using a library is cheating. At work, it is good work.