code: def testStringSplitWithDelimiterTensor(self):
      strings = ["hello|world", "hello world"]
  
      with self.cached_session() as sess:
          delimiter = array_ops.placeholder(dtypes.string)
  
          tokens = string_ops.string_split(strings, delimiter=delimiter)
  
          with self.assertRaises(errors_impl.InvalidArgumentError):
              sess.run(tokens, feed_dict={delimiter: ["a", "b"]})
          with self.assertRaises(errors_impl.InvalidArgumentError):
              sess.run(tokens, feed_dict={delimiter: ["a"]})
          indices, values, shape = sess.run(
              tokens, feed_dict={delimiter: "|"}
          )
  
          self.assertAllEqual(indices, [[0, 0], [0, 1], [1, 0]])
          self.assertAllEqual(
              values, [b"hello", b"world", b"hello world"]
          )
          self.assertAllEqual(shape, [2, 2])
  
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 6 for calling the StringSplitOpTest obj's underlying member method code with example usage: obj.testStringSplitWithDelimiterTensor() without return types