Finding out if object is dynamic

When I access an object in Python, I need to find out if it is dynamic/rigidbody or either it’s not. How do I do it?

Check the mass. If it’s static it will be zero. Anything else and it’s either dynamic or rigid body.
I am not sure how to tell between dynamic and rigid body.

OK! No need for rigid/dynamic check. I just need to check if that object can receive force/impulse.