code: def emit_Constant(self, IR_node):
      if IR_node.get_attr("value"):
          value = IR_node.get_attr("value")
      else:
          value = self.weights_dict[IR_node.name]["value"][0]
      IR_node_after = self.IR_graph.get_son(IR_node.name, [0])
      shape = IR_node_after.get_attr("_output_shapes")[0]
      shape = shape_to_list(shape)
      if len(shape) == 4:
          shape[1], shape[3] = shape[3], shape[1]
          shape[0] = 1
      shape = list(map(lambda x: str(x), shape))
  
      self.add_body(
          1,
          "n.{:<15} = L.DummyData(shape=[dict(dim=[{}])], data_filler=dict(type='constant', value={}), ntop=1)".format(
              IR_node.variable_name, ", ".join(shape), value
          ),
      )
  
imports: from __future__ import division
  import os
  import sys
  import math
  import numpy
  import caffe
  from caffe import layers
  from caffe import params
  from mmdnn.conversion.common.IR.IR_graph import IRGraph, IRGraphNode
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
  from mmdnn.conversion.common.DataStructure.emitter import Emitter
  from mmdnn.conversion.common.utils import *
label_desc: Use image node_id 21 for calling the CaffeEmitter obj's underlying member method code with example usage: obj.emit_Constant(IR_node) without return types