code: def test_remove_data_blocks(self, data, indices, gc, dc):
      indices = np.array(indices)
  
      op = core.CreateOperator(
          "RemoveDataBlocks", ["data", "indices"], ["shrunk_data"]
      )
  
      def op_ref(data, indices):
          unique_indices = (
              np.unique(indices)
              if len(indices) > 0
              else np.array([], dtype=np.int64)
          )
          sorted_indices = np.sort(unique_indices)
          shrunk_data = np.delete(data, sorted_indices, axis=0)
          return (shrunk_data,)
  
      self.assertReferenceChecks(
          device_option=gc,
          op=op,
          inputs=[data, indices],
          reference=op_ref,
      )
  
imports: from caffe2.python import core
  from functools import partial
  from hypothesis import given, settings
  import caffe2.python.hypothesis_test_util
  import caffe2.python.serialized_test.serialized_test_util
  import hypothesis.strategies
  import numpy
  import unittest
  from caffe2.python import workspace
label_desc: Use image node_id 12 for calling the TestSequenceOps obj's underlying member method code with example usage: obj.test_remove_data_blocks(data, indices, gc, dc) and returns: shrunk_data