def METHOD_NAME(object, type):
        """
        Check if the object is an instance of type
        :param object:
        :param type:
        :return:
        """
        if not isinstance(object, type):
            raise ValueError('The attribute "{object}" is not an instance of "{type}"')