code: def test_gather_ranges_split(self, tensor_splits, gc, dc):
      data, ranges, lengths, _ = tensor_splits
  
      self.assertReferenceChecks(
          device_option=gc,
          op=core.CreateOperator(
              "GatherRangesToDense",
              ["data", "ranges"],
              ["X_{}".format(i) for i in range(len(lengths))],
              lengths=lengths,
          ),
          inputs=[data, ranges, lengths],
          reference=gather_ranges_to_dense,
      )
  
file_path: pytorch/caffe2/python/operator_test/gather_ranges_op_test.py
imports: import caffe2.python.hypothesis_test_util
  import caffe2.python.serialized_test.serialized_test_util
  import numpy
  from caffe2.python import core, workspace
  from hypothesis import given, settings, strategies
label_desc: Use image node_id 2 for calling the TestGatherRanges obj's underlying member method code with example usage: obj.test_gather_ranges_split(tensor_splits, gc, dc) without return types