Add example to is_local method

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>