code: def get_keyboard_mapping(conn):
      
      mn, mx = get_min_max_keycode(conn)
  
      return conn.core.GetKeyboardMapping(mn, mx - mn + 1)
docs: Return a keyboard mapping cookie that can be used to fetch the table of
      keysyms in the current X environment.
  
      :rtype: xcb.xproto.GetKeyboardMappingCookie