code: def testUnknownInputRankError(self):
      # Use a tf.function that erases shape information.
      @def_function.function(
          input_signature=[tensor_spec.TensorSpec(None)]
      )
      def f(v):
          return ragged_string_ops.string_bytes_split(v)
  
      with self.assertRaisesRegex(
          TypeError, "Binding inputs to tf.function failed"
      ):
          f(["foo"])
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/strings_ops/string_bytes_split_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_string_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the StringsToBytesOpTest obj's underlying member method code with example usage: obj.testUnknownInputRankError() and returns: ragged_string_ops