code: def assert_is_instance(value, types, message=None, extra=None):
      
      assert isinstance(value, types), _assert_fail_message(
          message, value, types, "is not an instance of", extra
      )
docs: Raises an AssertionError if value is not an instance of type(s).