docstr: Return the file path containing graph in generated model files.
docstr_tok: ["Return","the","file","path","containing","graph","in","generated","model","files","."]
code: def dump(self, model_output_dir):
      """Return the file path containing graph in generated model files."""
      if not os.path.exists(model_output_dir):
          os.makedirs(model_output_dir)
      sys.path.append(os.path.dirname(self.code_output_path))
      file_name = os.path.splitext(
          os.path.basename(self.code_output_path)
      )[0]
      module = import_module(file_name)
      class_name = get_upper_case(file_name)
      net = getattr(module, class_name)
      return net.dump(self.data_output_path, model_output_dir)
  
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 ModelSaver obj's underlying member method code with example usage: obj.dump(model_output_dir) and returns: net