HF RL Explorer

adapted new API for segmentation function and added tests

adapted new API for segmentation function and added tests: a task in life-science-SWE1.0 (Harbor dataset). Title: adapted new API for segmentation function and added tests

The task

**Title:** adapted new API for segmentation function and added tests

Part of scalingX/life-science-SWE1.0.