def host_to_container_path(id, path):
    """
    Converts a path from the host's file system's perspective into a path
    from the container's file system's perspective.

    Note that path MUST be an absolute file path.

    """

    prefix = os.path.join(find_container_directory(), str(id))

    if not path.startswith(prefix):
        raise ValueError(path % "path (%s) is not in the container")

    return path[len(prefix):]
dataset/ETHPy150Open ucrcsedept/galah/galah/sheep/virtualsuites/vz/pyvz.py/host_to_container_path/swapped operands of `%`