<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mode_group(self):
 		"""The mode group that the button, ring, or strip that 		triggered this event is considered in. 		The mode is a virtual grouping of functionality, usually based on some 		visual feedback like LEDs on the pad. See `Tablet pad modes`_ 		for details. 		Returns: 			~libinput.define.TabletPadModeGroup: The mode group of the button, 			ring or strip that caused this event. 		"""


		hmodegroup = self._libinput.libinput_event_tablet_pad_get_mode_group(
			self._handle)
		return TabletPadModeGroup(hmodegroup, self._libinput)