<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def capabilities(self):
 		"""A tuple of capabilities this device supports. 		Returns: 			(~libinput.constant.DeviceCapability):
 Device capabilities. 		"""


		caps = []
		for cap in DeviceCapability:
			if self._libinput.libinput_device_has_capability(self._handle, cap):
				caps.append(cap)
		return tuple(caps)