def METHOD_NAME(self, data: Tuple[str, Any]) -> Tuple[str, str]:
    path = pathlib.Path(data[0])
    category = path.parent.name
    if category in self._ANNS_CATEGORY_MAP:
        category = self._ANNS_CATEGORY_MAP[category]
    id = self._ANNS_NAME_PATTERN.match(path.name).group("id")  # type: ignore[union-attr]
    return category, id