if source and not isinstance(source, Node):
            raise ValueError("Expected Node, got {}".format(type(source)))