code: def add_ops(self, net):
      net.WeightedSum(
          [
              b
              for x_w_pair in zip(self.data, self.weights)
              for b in x_w_pair
          ],
          self.output_schema(),
      )
  
imports: from caffe2.python import schema
  from caffe2.python.layers.layers import ModelLayer
  import numpy
label_desc: Use image node_id 2 for calling the ConstantWeight obj's underlying member method code with example usage: obj.add_ops(net) without return types