How to automate older versions of android using selendroid in appium

Please provide detailed expalanation
and sample code

Docs: http://appium.io/slate/en/master/
Samples: https://github.com/appium/sample-code/tree/master/sample-code/examples/node

Everything you need.