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