class_docstr: Log reader to read vdl log, support for frontend api in lib.py.
  
      
docstr: Register to self._tags by component type.
  
  Args:
      record_bin: Binary data from vdl log file.
docstr_tok: ["Register","to","self._tags","by","component","type",".","Args",":","record_bin",":","Binary","data","from","vdl","log","file","."]
code: def parse_from_bin(self, record_bin):
      """Register to self._tags by component type.
  
      Args:
          record_bin: Binary data from vdl log file.
      """
      record = record_pb2.Record()
      record.ParseFromString(record_bin)
      value = record.values[0]
      tag = decode_tag(value.tag)
      path = bfile.join(self.reader.dir, tag)
  
      if path not in self._tags.keys():
          value_type = value.WhichOneof("one_value")
          if "value" == value_type:
              component = "scalar"
          elif "image" == value_type:
              component = "image"
          elif "embeddings" == value_type:
              component = "embeddings"
          elif "audio" == value_type:
              component = "audio"
          elif "histogram" == value_type:
              component = "histogram"
          elif "pr_curve" == value_type:
              component = "pr_curve"
          elif "roc_curve" == value_type:
              component = "roc_curve"
          elif "meta_data" == value_type:
              self.update_meta_data(record)
              component = "meta_data"
          elif "text" == value_type:
              component = "text"
          elif "hparam" == value_type:
              component = "hyper_parameters"
          elif "tag_value" == value_type:
              component = "scalars"
          else:
              raise TypeError("Invalid value type `%s`." % value_type)
          self._tags[path] = component
  
      return self._tags[path], self.reader.dir, tag, value
  
imports: import collections
  import os
  from functools import partial
  from visualdl.component import components
  from visualdl.io import bfile
  from visualdl.proto import record_pb2
  from visualdl.reader.record_reader import RecordReader
  from visualdl.server.data_manager import default_data_manager
  from visualdl.utils.string_util import decode_tag
  from visualdl.utils.string_util import encode_tag
label_desc: Use image node_id 10 for calling the LogReader obj's underlying member method code with example usage: obj.parse_from_bin(record_bin) and returns: self,  self,  tag,  value