Add API to support graph_def based snapshots

This adds support for an undocumented but very useful feature - being able to take a snapshot based on the actual graph definition.

It has been added to the python api by https://github.com/DataDog/dogapi/commit/583f13d7bd8de5a86daa2ff53f2d7cf6570e7ab2 and is supported on the backend.