<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def device(self):
 		"""The device associated with this event. 		For device added/removed events this is the device added or removed. 		For all other device events, this is the device that generated the 		event. 		Returns: 			~libinput.define.Device: Device object. 		"""


		hdevice = self._libinput.libinput_event_get_device(self._hevent)
		return Device(hdevice, self._libinput)