fix: add missing stacklevel=2 to warnings.warn() in metrics/ (Fixes 8931)
fix: add missing stacklevel=2 to warnings.warn() in metrics/ (Fixes 8931): a task in life-science-SWE1.0 (Harbor dataset). Title: fix: add missing stacklevel=2 to warnings.warn() in metrics/
The task
**Title:** fix: add missing stacklevel=2 to warnings.warn() in metrics/
Part of scalingX/life-science-SWE1.0.