code: def test_sparse_lengths_indices_in_gradient_sum_gpu(self, gc, dc):
      X = np.random.rand(3, 3, 4, 5).astype(np.float32)
      Y = np.asarray([3, 3, 2]).astype(np.int32)
      Z = np.random.randint(0, 50, size=8).astype(np.int64)
      op = core.CreateOperator(
          "SparseLengthsIndicesInGradientSumGradient",
          ["X", "Y", "Z"],
          "out",
      )
      self.assertDeviceChecks(dc, op, [X, Y, Z], [0])
  
imports: from functools import partial
  from hypothesis import given, settings
  import numpy
  import unittest
  import hypothesis.strategies
  from caffe2.python import core, workspace
  import caffe2.python.hypothesis_test_util
  import caffe2.python.serialized_test.serialized_test_util
label_desc: Use image node_id 17 for calling the TestSegmentOps obj's underlying member method code with example usage: obj.test_sparse_lengths_indices_in_gradient_sum_gpu(gc, dc) without return types