Modify `TaskGroup.clone()` to behave similarly to `Task.clone()` to maintain consistency. ### TODO: - [ ] Implement proper cloning for `TaskGroup`. - [ ] Ensure state and dependencies are copied correctly. - [ ] Test the cloning functionality.
Modify
TaskGroup.clone()to behave similarly toTask.clone()to maintain consistency.TODO:
TaskGroup.