class_docstr: Dumpt a DL graph into a Python script.
class_docstr_tok: ["Dumpt","a","DL","graph","into","a","Python","script","."]
docstr: Emits the Python source for this node.
docstr_tok: ["Emits","the","Python","source","for","this","node","."]
code: def emit_node(self, node):
      """Emits the Python source for this node."""
  
      def pair(key, value):
          return "%s=%s" % (key, value)
  
      args = []
      for input in node.input:
          input = input.strip().split(":")
          name = "".join(input[:-1])
          idx = int(input[-1])
          assert name in self.graph.node_dict
          parent = self.graph.get_node(name)
          args.append(parent.output[idx])
      # FIXME:
      output = [node.output[0]]
      # output = node.output
      for k, v in node.attr:
          if k == "cell_type":
              args.append(pair(k, "'" + fetch_attr_value(v) + "'"))
          else:
              args.append(pair(k, fetch_attr_value(v)))
      args.append(
          pair("name", "'" + node.name + "'")
      )  # Set the node name
      args = ", ".join(args)
      return self.statement(
          "%s = self.%s(%s)" % (", ".join(output), node.op, args)
      )
  
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 8 for calling the PyWriter obj's underlying member method code with example usage: obj.emit_node(node) and returns: self, unknown