Fix and unit test get mean var
Fix and unit test get mean var: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Fix and unit test get mean var
The task
**Title:** Fix and unit test `get_mean_var`
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.