class_docstr: Dumpt a DL graph into a Json file.
class_docstr_tok: ["Dumpt","a","DL","graph","into","a","Json","file","."]
code: def dump(self, json_path):
      json_txt = json_format.MessageToJson(self.graph_def)
      parsed = json.loads(json_txt)
      formatted = json.dumps(parsed, indent=4, sort_keys=True)
      with open(json_path, "w") as f:
          f.write(formatted)
  
imports: import base64
  from google.protobuf import json_format
  from importlib import import_module
  import json
  import numpy
  import os
  import sys
  from mmdnn.conversion.caffe.errors import ConversionError
  from mmdnn.conversion.caffe.common_graph import fetch_attr_value
  from mmdnn.conversion.caffe.utils import get_lower_case, get_upper_case, get_real_name
label_desc: Use image node_id 2 for calling the JsonFormatter obj's underlying member method code with example usage: obj.dump(json_path) without return types