Allow using arbitrary layer for terminal state calculation
Allow using arbitrary layer for terminal state calculation: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Allow using arbitrary layer for terminal state calculation
The task
**Title:** Allow using arbitrary layer for terminal state calculation
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.