code: def parse_key(key):
      
      hkey, lkey = struct.unpack('<II',key[0:UBIFS_SK_LEN])
      ino_num = hkey & UBIFS_S_KEY_HASH_MASK
      key_type = lkey >> UBIFS_S_KEY_BLOCK_BITS
      khash = lkey
  
      #if key_type < UBIFS_KEY_TYPES_CNT:
      return {'type':key_type, 'ino_num':ino_num, 'khash': khash}
docs: Parse node key
  
      Arguments:
      Str:key    -- Hex string literal of node key.
  
      Returns:
      Int:key_type   -- Type of key, data, ino, dent, etc.
      Int:ino_num    -- Inode number.
      Int:khash      -- Key hash.