Train an EdgeBoxes Model

I recently viewed the EdgeBoxes demo at opencv_contrib/edgeboxes_demo.py at 96ea9a0d8a2dee4ec97ebdec8f79f3c8a24de3b0 · opencv/opencv_contrib · GitHub . However, I can’t find an API to train an EdgeBoxes model in Python. Can someone guide me on how to do that?

i think it is here (unfortunately, matlab, not python)