M2M100Tokenizer.from_pretrained 'NoneType' object is not callable

I have the following chunk of code from this link:

from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer

hi_text = "जीवन एक चॉकलेट बॉक्स की तरह है।"
chinese_text = "生活就像一盒巧克力。"

model = M2M100ForConditionalGeneration.from_pretrained("facebook/m2m100_418M")
tokenizer = M2M100Tokenizer.from_pretrained("facebook/m2m100_418M")

Which gives me the following error:

'NoneType' object is not callable

I'm using Google Colab, but funnily enough it works perfectly fine in VSCode.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum