Segmentation regions for Fiducial Points

Operating system: Windows 10 Pro
Slicer version: 4.10 and / or 4.11
Hi all,

I have a set of fiducial points and a segmentation and I need to obtain the segments which the points belong to.
There are so many points that I need an automated way to do that.
How can I obtain the segments for each point using the Python interface ?
I can see the regions manually by pointing the mouse on them, but I don’t know how I can get them by code.

Thank you all and best regards.

This example shows how to get segments visible at markups fiducial point position: