code: def unpack_to_nibbles(bindata):
      
      o = bin_to_nibbles(bindata)
      flags = o[0]
      if flags & 2:
          o.append(NIBBLE_TERMINATOR)
      if flags & 1 == 1:
          o = o[1:]
      else:
          o = o[2:]
      return o
docs: unpack packed binary data to nibbles
  
      :param bindata: binary packed from nibbles
      :return: nibbles sequence, may have a terminator