code: def testRegexSplitOp(
      self,
      text_input,
      delim_regex_pattern,
      expected,
      keep_delim_regex_pattern=r"",
      input_is_dense=False,
      ragged_rank=None,
  ):
      if input_is_dense:
          text_input = constant_op.constant(text_input)
      else:
          text_input = ragged_factory_ops.constant(
              text_input, ragged_rank=ragged_rank
          )
  
      (
          actual_tokens,
          start,
          end,
      ) = regex_split_ops.regex_split_with_offsets(
          input=text_input,
          delim_regex_pattern=delim_regex_pattern,
          keep_delim_regex_pattern=keep_delim_regex_pattern,
      )
      self.assertAllEqual(actual_tokens, expected)
  
      # Use the offsets to extract substrings and verify that the substrings match
      # up with the expected tokens
      extracted_tokens = _ragged_substr(
          array_ops.expand_dims(text_input, -1), start, end - start
      )
      if extracted_tokens is not None:
          self.assertAllEqual(extracted_tokens, expected)
  
imports: from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors_impl
  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_tensor
  from tensorflow_text.python.ops import regex_split_ops
label_desc: Use image node_id 1 for calling the RegexSplitOpsTest obj's underlying member method code with example usage: obj.testRegexSplitOp(text_input, delim_regex_pattern, expected, keep_delim_regex_pattern, input_is_dense, ragged_rank) without return types