class_docstr: Dumpt a DL graph into a Python script.
class_docstr_tok: ["Dumpt","a","DL","graph","into","a","Python","script","."]
code: def dump(self, code_output_dir):
      if not os.path.exists(code_output_dir):
          os.makedirs(code_output_dir)
      file_name = get_lower_case(self.graph.name)
      code_output_path = os.path.join(
          code_output_dir, file_name + ".py"
      )
      data_output_path = os.path.join(
          code_output_dir, file_name + ".npy"
      )
      with open(code_output_path, "w") as f:
          f.write(self.emit())
      with open(data_output_path, "wb") as f:
          np.save(f, self.data)
      return code_output_path, data_output_path
  
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 9 for calling the PyWriter obj's underlying member method code with example usage: obj.dump(code_output_dir) and returns: code_output_path,  data_output_path