How to Get Bundle Item Parent id by option id in Magento 2?

When you are working with the Bundle Product related customization and you required to parent product id by the Option id, You can easily achieve it by the option id with some programming stuff.

Each Bundle Product generated by the combines of options selection. Each option contains the list of a product like a simple or virtual.

You can retrieve the Bundle Id called parent product id using the below code snippet,

You can get the parent id by,

Output:
52