Generally speaking, you should always name your functions so it makes sense of what it does.
Naming a function “inside_astroid” that both checks and draws the astroid is not a good idea. It makes more sense to have 2 separate functions, one for drawing and one for checking if the mouse is inside.
If you want to go even further, have a look at object-oriented programing. This way you could have an astroid object defining the position, speed and so on. And some function linked to that object for drawing it, moving it, checking if the mouse is inside…