code: def testWrite(self):
      path = os.path.join(self.create_tempdir(), "split-repeat")
      data = [_random_string(5), _random_string(10), _random_string(15)]
      returned_path = RepeatedStringSplitter(
          test_message_pb2.RepeatedString(strings=data)
      ).write(path)
      self.assertEqual(returned_path, f"{path}.cpb")
  
      with riegeli.RecordReader(open(f"{path}.cpb", "rb")) as reader:
          self.assertTrue(reader.check_file_format())
          records = list(reader.read_records())
          self.assertLen(records, 4)
  
          proto = chunk_pb2.ChunkMetadata()
          proto.ParseFromString(records[-1])
          self.assertLen(proto.message.chunked_fields, 3)
          self.assertFalse(proto.message.HasField("chunk_index"))
  
          expected_indices = [0, 1, 2]
          # Check that the chunk indices and info are correct.
          for expected_index, expected_data, chunk in zip(
              expected_indices, data, proto.message.chunked_fields
          ):
              i = chunk.message.chunk_index
              self.assertEqual(expected_index, i)
  
              chunk_info = proto.chunks[i]
              self.assertEqual(
                  chunk_pb2.ChunkInfo.Type.BYTES, chunk_info.type
              )
              self.assertEqual(len(expected_data), chunk_info.size)
              reader.seek_numeric(chunk_info.offset)
              self.assertEqual(expected_data, reader.read_record())
  
imports: import os
  import random
  import string
  import riegeli
  from tensorflow.python.platform import test
  from tensorflow.tools.proto_splitter import chunk_pb2
  from tensorflow.tools.proto_splitter import split
  from tensorflow.tools.proto_splitter.testdata import test_message_pb2
label_desc: Use image node_id 3 for calling the SplitRepeatedStringTest obj's underlying member method code with example usage: obj.testWrite() without return types