fn validate_task_kind( node_id: &str, kind: TaskKind, has_inputs: bool, has_outputs: bool, ) -> CuResult<()>