class_docstr: Package data with crc32 or not.
      
class_docstr_tok: ["Package","data","with","crc32","or","not","."]
docstr: Package and write data to disk.
  
  Args:
      data (string or bytes): Data to write to disk.
docstr_tok: ["Package","and","write","data","to","disk",".","Args",":","data","(","string","or","bytes",")",":","Data","to","write","to","disk","."]
code: def write(self, data):
      """Package and write data to disk.
  
      Args:
          data (string or bytes): Data to write to disk.
      """
      header = struct.pack("<Q", len(data))
      self._writer.write(header + data)
  
imports: from visualdl.io import bfile
  from visualdl.utils.crc32 import masked_crc32c
  from visualdl.proto import record_pb2
  import struct
  import time
  import queue
  import threading
  import os
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