How to add floor reflection using python

Simple vertical flipping will fail when the object is not horizontally placed. So I need a more sophisticated way. I also have mask of all objects.

The attached image is just for reference,

Edit: It's fine if I don't get inner part reflection, for instance I'm not interested in getting reflection of axle in the attached image

https://preview.redd.it/0vrqclmjzdbe1.jpg?width=1216&format=pjpg&auto=webp&s=b05753527443b9256d172aa32fd2e29cf7583c40