Code example for training CANINE

I want to use a pre-trained CANINE model and train it for 2 tasks:
1 - MLM or other language modeling task to improve specific language accuracy
2 - Question answering
There are code examples for both tasks?