code: def get_mode_group(self, group):
  		
  
  		hmodegroup = self._libinput.libinput_device_tablet_pad_get_mode_group(
  			self._handle, group)
  		if hmodegroup:
  			return TabletPadModeGroup(hmodegroup, self._libinput)
  		return None
docs: While a reference is kept by the caller, the returned mode group
  		will compare equal with mode group returned by each subsequent call of
  		this method with the same index and mode group returned from
  		:attr:`~libinput.event.TabletPadEvent.mode_group`, provided
  		the event was generated by this mode group.
  
  		Args:
  			group (int): A mode group index.
  		Returns:
  			~libinput.define.TabletPadModeGroup: The mode group with the given
  			index or :obj:`None` if an invalid index is given.