class_docstr: Write encoded protobuf to a file with packing defined in tensorflow.
code: def write(self, data):
      header = struct.pack("<Q", len(data))
      header_crc = struct.pack("<I", masked_crc32c(header))
      footer_crc = struct.pack("<I", masked_crc32c(data))
      self._writer.write(header + header_crc + data + footer_crc)
  
file_path: tensorboard/tensorboard/summary/writer/record_writer.py
imports: import struct
  from tensorboard.compat.tensorflow_stub.pywrap_tensorflow import masked_crc32c
label_desc: Use image node_id 2 for calling the RecordWriter obj's underlying member method code with example usage: obj.write(data) without return types