How to Convert dynamo nodes to python script

Hey everyone,

How I can Convert dynamo nodes which have been built as nodes in dynamo to python script (or to be used in RevitPythonShell).

Thanks and my regards,
Ahmad