code: def cnn_to_graph_def(cnn, **kwargs):
      return nets_to_graph_def([cnn.param_init_net, cnn.net], **kwargs)
  
imports: import copy
  import logging
  import os
  from caffe2.proto import caffe2_pb2
  from caffe2.python import core, workspace
label_desc: Use image node_id 18 for calling a global function with example usage: cnn_to_graph_def(cnn) and returns: nets_to_graph_def