code: def _add_ops(self, net, ratio):
      input_values_blob = self.input_record.items()
      input_lengths_blob = self.input_record.lengths()
  
      output_lengths_blob = self.output_schema.lengths()
      output_values_blob = self.output_schema.items()
  
      net.SparseItemwiseDropoutWithReplacement(
          [input_values_blob, input_lengths_blob],
          [output_values_blob, output_lengths_blob],
          ratio=ratio,
          replacement_value=self.replacement_value,
      )
  
file_path: pytorch/caffe2/python/layers/sparse_itemwise_dropout_with_replacement.py
imports: from caffe2.python import schema
  from caffe2.python.layers.layers import IdList, ModelLayer
label_desc: Use image node_id 2 for calling the SparseItemwiseDropoutWithReplacement obj's underlying member method code with example usage: obj._add_ops(net, ratio) without return types