How to check if a source pad is linked to a sink pad in deepstream python?

You can check all API in below.

https://lazka.github.io/pgi-docs/Gst-1.0/classes/Pad.html#Gst.Pad.is_linked