Contents:
Asserts whether an object inherits from a particular class.
Uses isinstance.
obj (object) – The object to test.
cls (Class) – Class to check obj is an instance of.