How do you check if a library is safe?

Hello, everyone.

I recently started testing some things in Python and Langflow with the help of "Professor GPT," and it suggested numerous libraries, which I went ahead and downloaded. Later, it hit me that this might be dangerous... So I'm removing everything.

How do you check if a library is safe?

Which ones do you recommend the most?

I'm new to this field, and I appreciate your understanding and anyone who can answer.