code: def _add_blob(layer, shape, data):
      # The following part is ridiculously slow!!
      # TODO(okuta): Replace with C++ extension call
      blob = layer.blobs.add()
      blob.shape.dim[:] = shape
      blob.data[:] = data.flatten()
  
imports: import collections
  import heapq
  import os
  import numpy
  import six
  import chainer
  from chainer import function
  from chainer import function_node
  from chainer.links.caffe.protobuf3 import caffe_pb2
  from chainer import variable
label_desc: Use image node_id 1 for calling a global function with example usage: _add_blob(layer, shape, data) without return types