class_docstr: This implements partial flexbuffer deserialization to be able
  to read custom options. It is not intended to be a general
  purpose flexbuffer deserializer and as such only supports a
  limited number of types and assumes the data is a flat map.
docstr: Decode the buffer. Decoding is partially implemented
docstr_tok: ["Decode","the","buffer",".","Decoding","is","partially","implemented"]
code: def decode(self):
      """Decode the buffer. Decoding is partially implemented"""
      root_end = len(self.buffer) - 1
      root_byte_width = self.buffer[root_end]
      root_end -= 1
      root_packed_type = self.buffer[root_end]
      root_end -= root_byte_width
  
      root_type = FlexBufferType(root_packed_type >> 2)
      byte_width = 1 << BitWidth(root_packed_type & 3)
  
      if root_type == FlexBufferType.FBT_MAP:
          return self.decode_map(root_end, byte_width, root_byte_width)
      raise NotImplementedError(
          "Flexbuffer Decoding is partially imlpemented."
      )
  
file_path: tvm/python/tvm/relay/frontend/tflite_flexbuffer.py
imports: import struct
  from enum import IntEnum
label_desc: Use image node_id 6 for calling the FlexBufferDecoder obj's underlying member method code with example usage: obj.decode() and returns: self