Fix 8366: Add strict shape validation to sliding window inference
Fix 8366: Add strict shape validation to sliding window inference: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix 8366: Add strict shape validation to sliding window inference
The task
**Title:** Fix #8366: Add strict shape validation to sliding_window_inference
Part of scalingX/life-science-SWE1.0.