def METHOD_NAME(self, m, n_split, gc, dc):
    input_lengths = np.random.randint(100, size=m).astype(np.int32)
    n_split_ = np.array([n_split]).astype(np.int32)
    op = core.CreateOperator(
        'LengthsSplit',
        ['input_lengths',
         'n_split'],
        ['Y'],
    )
    # Check against numpy reference
    self.assertReferenceChecks(
        device_option=gc,
        op=op,
        inputs=[input_lengths,
                n_split_],
        reference=self._length_split_op_ref,
    )
    # Check over multiple devices
    self.assertDeviceChecks(dc, op, [input_lengths, n_split_], [0])