code: def testSplitV1(
      self, input, expected, input_is_ragged=False, **kwargs
  ):  # pylint: disable=redefined-builtin
      # Prepare the input tensor.
      if input_is_ragged:
          input = ragged_factory_ops.constant(
              input, dtype=dtypes.string
          )
      else:
          input = constant_op.constant(input, dtype=dtypes.string)
  
      expected_ragged = ragged_factory_ops.constant(expected)
      actual_ragged_v1 = ragged_string_ops.strings_split_v1(
          input, result_type="RaggedTensor", **kwargs
      )
      actual_ragged_v1_input_kwarg = ragged_string_ops.strings_split_v1(
          input=input, result_type="RaggedTensor", **kwargs
      )
      actual_ragged_v1_source_kwarg = (
          ragged_string_ops.strings_split_v1(
              source=input, result_type="RaggedTensor", **kwargs
          )
      )
      self.assertAllEqual(expected_ragged, actual_ragged_v1)
      self.assertAllEqual(expected_ragged, actual_ragged_v1_input_kwarg)
      self.assertAllEqual(
          expected_ragged, actual_ragged_v1_source_kwarg
      )
      expected_sparse = self.evaluate(expected_ragged.to_sparse())
      actual_sparse_v1 = ragged_string_ops.strings_split_v1(
          input, result_type="SparseTensor", **kwargs
      )
      self.assertEqual(
          expected_sparse.indices.tolist(),
          self.evaluate(actual_sparse_v1.indices).tolist(),
      )
      self.assertEqual(
          expected_sparse.values.tolist(),
          self.evaluate(actual_sparse_v1.values).tolist(),
      )
      self.assertEqual(
          expected_sparse.dense_shape.tolist(),
          self.evaluate(actual_sparse_v1.dense_shape).tolist(),
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_string_ops
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 2 for calling the StringSplitV2OpTest obj's underlying member method code with example usage: obj.testSplitV1(input, expected, input_is_ragged) without return types