def f(v): return ragged_string_ops.string_bytes_split(v)
def testStringToBytes(self, source, expected): expected = ragged_factory_ops.constant_value(expected, dtype=object) result = ragged_string_ops.string_bytes_split(source) self.assertAllEqual(expected, result)