chandrak:

from transformers import LongformerTokenizer, TFLongformerForMaskedLM


Maybe you should check if you have the latest version of Huggingface Transformers. (i.e. 3.4.0)
I can import it without any problem