parameters: (device_id)
return_statement: return context.device
docstring: Make the context associated with device *device_id* the current context.
  
      Returns a Device instance.
  
      Raises exception on error.
docstring_summary: Make the context associated with device *device_id* the current context.
docstring_tokens: Make the context associated with device * device_id * the current context .
function: def select_device(device_id):
      """
      Make the context associated with device *device_id* the current context.
  
      Returns a Device instance.
  
      Raises exception on error.
      """
      context = devices.get_context(device_id)
      return context.device
function_tokens: def select_device ( device_id ) : context = devices . get_context ( device_id ) return context . device