human
I wrote the below code

    def is_under_root(path):
        try:
            FilePath(path).segmentsFrom(root_path)
        except ValueError:
            return False
        return True
    partitions_under_root = list((p for p in psutil.disk_partitions() if is_under_root(p.mountpoint)))
    for partition in partitions_under_root:
        umount(FilePath(partition.mountpoint))

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def umount_all(root_path):