def METHOD_NAME(*args: Any, **kwargs: Any) -> Any:
    inner_result = result(*args, **kwargs)
    if isinstance(inner_result, PurePosixPath):
        return LogicalPath(inner_result)
    return inner_result