Could you provide a small code example in python implementing this?