Fix deprecation warnings from Issue 3535
Fix deprecation warnings from Issue 3535: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix deprecation warnings from Issue 3535
The task
**Title:** Fix deprecation warnings from Issue #3535
Part of scalingX/life-science-SWE1.0.