code: def test_empty_record(self):
      filename = os.path.join(self.get_temp_dir(), "empty_record")
      w = RecordWriter(open(filename, "wb"))
      bytes_to_write = b""
      w.write(bytes_to_write)
      w.close()
      r = PyRecordReader_New(filename)
      r.GetNext()
      self.assertEqual(r.record(), bytes_to_write)
  
file_path: tensorboard/tensorboard/summary/writer/record_writer_test.py
imports: import io
  import os
  from tensorboard.summary.writer.record_writer import RecordWriter
  from tensorboard.compat.tensorflow_stub import errors
  from tensorboard.compat.tensorflow_stub.pywrap_tensorflow import PyRecordReader_New
  from tensorboard import test
label_desc: Use image node_id 2 for calling the RecordWriterTest obj's underlying member method code with example usage: obj.test_empty_record() without return types