I need python code for converting two stage opamp circuit into graph data for GNN

Respectable All my Friends,
Hi I am second year engineering student. I am interested to do little study on GNN in operational amplifier design, in that i tried many program by getting self educating from youtube tutorials nothing gets in proper. I request if anybody working in the same field, help me to provide code for generating two stage opamp circuit in to graph for my Graph neural Network. please consider your own netlist for the construction.
Thank you in advance for your kind help.