class_docstr: Write encoded protobuf to a file with packing defined in tensorflow.
docstr: Open a file to keep the tensorboard records.
  
  Args:
  writer: A file-like object that implements `write`, `flush` and `close`.
docstr_tok: ["Open","a","file","to","keep","the","tensorboard","records",".","Args",":","writer",":","A","file-like","object","that","implements","`","write","`",",","`","flush","`","and","`","close","`","."]
code: def __init__(self, writer):
      """Open a file to keep the tensorboard records.
  
      Args:
      writer: A file-like object that implements `write`, `flush` and `close`.
      """
      self._writer = writer
  
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 1 to create a new RecordWriter object  with example: obj = RecordWriter(writer)