code: def is_device(self):
  		
  
  		if self in {type(self).DEVICE_ADDED, type(self).DEVICE_REMOVED}:
  			return True
  		else:
  			return False
docs: Macro to check if this event is
  		a :class:`~libinput.event.DeviceNotifyEvent`.