How to check if the object belongs to pillow code example Example: check type of variable in python str = "Hello" type(str)