def startswith(self, root):
        """
        Checks path to be subpath of `root` argument.

        Example:

            >>> Path('a/b/c/d').startswith(Path('a/b'))
            True
            >>> Path('a/b')['../c'].startswith(Path('a/b'))
            False
        """
        if not isinstance(root, Path):
            raise ValueError('Path expected, %r found' % type(root).__name__)
        root_length = len(root.segments)
        if root_length < len(self.segments):
            return False
        return (self.segments[:root_length] == root.segments and
                self.prefix == root.prefix)
dataset/ETHPy150Open Evgenus/protocyt/protocyt/path.py/Path.startswith/swapped operands of `<`