>>> help(isinstance) Help on built-in function isinstance in module builtins:
isinstance(obj, class_or_tuple, /) Return whether an object is an instance of a classorofasubclassthereof. A tuple, as in ``isinstance(x, (A, B, ...))``, may be given as the target to check against. This is equivalent to ``isinstance(x, A) or isinstance(x, B) or ...`` etc.