add some functions to moran.py and utils.py
add some functions to moran.py and utils.py: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: add some functions to moran.py and utils.py
The task
**Title:** add some functions to moran.py and utils.py
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.