How to change selected automation parameter

so i tried this

>>> renoise.song().selected_automation_parameter=2

and got this

*** std::logic_error: 'passed argument is not a device parameter object'

what’s the correct method of identifying the device parameter object, please?

i need to quickly switch between any automated parameter in selected track.
because.

-- Selected parameter in the automation editor. Can be nil.
-- When setting a new parameter, parameter must be automateable and 
-- must be one of the currently selected track device chain.
renoise.song().selected_automation_parameter, _observable
  -> [renoise.DeviceParameter object or nil]

i don’t understand what this is or how i can give it a deviceparameter object. or what a deviceparameter object is.