code: def device_set(self, device):
  		
  
  		if device['id'].startswith('0x'):
  			self.device_id = device['id'][2:]
  		elif device['id'].startswith('ios:'):
  			self.device_id = device['id'].replace(':', '')
  		else:
  			self.device_id = device['id']
docs: Set device used by :class:`MobileClient` instance.
  
  		Parameters:
  			device (dict): A device dict as returned by :meth:`devices`.