from pathlib import Path


def parse_slide_id(path):
    """Parse slide id from path. Slide id is simply the name of the file without file extension

    Args:
        path (string): path to slide image

    Returns:
        string: slide id
    """
    posix_file_path = path.split(':')[-1]

    slide_id = Path(posix_file_path).stem

    return slide_id