code: def _read(data):
      header = struct.unpack("Q", data[:8])
  
      event_str = data[12 : 12 + int(header[0])]  # 8+4
      data = data[12 + int(header[0]) + 4 :]
      return data, event_str
  
imports: import struct
  import pandas
  from tensorboard.compat.proto import event_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _read(data) and returns: data,  event_str