resource-native: Move the example code to its own file

resource-native_example.py now contains the example