def _path_to_labber_section(path: str, delim: str) -> str:
    """Path to Labber format. Delete slashes from start and end.

    Returns:
        Formatted path in Labber format with given delimited."""
    return path.strip("/").replace("/", delim)