code: def testRaggedSplitDynamicShapeError(
      self,
      descr,
      rt_shape,
      lengths_shape,
      lengths,
      exception,
      message="",
      axis=0,
      num=None,
  ):
      rt_spec = ragged_tensor.RaggedTensorSpec(rt_shape, ragged_rank=1)
      split_lengths_spec = tensor_spec.TensorSpec(
          lengths_shape, dtype=dtypes.int32
      )
  
      @def_function.function(
          input_signature=[rt_spec, split_lengths_spec]
      )
      def split_tensors(rt, split_lengths):
          return ragged_array_ops.split(
              rt, split_lengths, axis=axis, num=num
          )
  
      rt = ragged_tensor.RaggedTensor.from_row_lengths(
          [1.0, 2.0, 3.0, 4.0], [3, 1]
      )
      with self.assertRaisesRegex(exception, message):
          self.evaluate(split_tensors(rt=rt, split_lengths=lengths))
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_array_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 6 for calling the RaggedSplitOpTest obj's underlying member method code with example usage: obj.testRaggedSplitDynamicShapeError(descr, rt_shape, lengths_shape, lengths, exception, message, axis, num) and returns: ragged_array_ops