def METHOD_NAME(
    s: str, *args: Any, **kwargs: Any
) -> tuple[Optional["TaskId"], Optional[str]]:
    try:
        return TaskId.parse(s, *args, **kwargs), None
    except PluginException as e:
        return None, str(e)