def parse_common_folder_path(path: str) -> dict[str, str]:
        """Parse a folder path into its component segments."""
        m = re.match(r"^folders/(?P<folder>.+?)$", path)
        return m.groupdict() if m else {}
Parse a folder path into its component segments.
cirq-google/cirq_google/cloud/quantum_v1alpha1/services/quantum_engine_service/client.py