Visualizing the gstreamer pipeline in dot file

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) - Jetson
• DeepStream Version - 5.0
• JetPack Version (valid for Jetson only) - 4.4
• TensorRT Version - 7.0
• NVIDIA GPU Driver Version (valid for GPU only)

Hi, how can I visualise my deepstream pipeline in the form of .dot file? I have no idea how to chunk it out and visualise.
Thanks!!

This is a function provided by GStreamer, please refer to Basic tutorial 11: Debugging tools