def select_device(device_id):
 context = devices.get_context(device_id)
 return context.device

def select_device ( device_id ) : context = devices . get_context ( device_id ) return context . device
make the context associated with device *device_id* the current context .