def is_instance(obj, klass):
    return issubclass(type(obj), klass)
Version of is_instance that doesn't access __class__
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/unittest/test/testmock/support.py/is_instance