Backport PR 4256 on branch 1.12.x (fix: use the non-zero median as target sum on the sparse path)
Backport PR 4256 on branch 1.12.x (fix: use the non-zero median as target sum on the sparse path): a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Backport PR 4256 on branch 1.12.x (fix: use the non-zero median as target sum on the sparse path)
The task
**Title:** Backport PR #4256 on branch 1.12.x (fix: use the non-zero median as `target_sum` on the sparse path)
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.