This probably means you don’t have the latest version. You should check your version of Transformers with
import transformers
print(transformers.__version__)

and if you don’t see at least 4.3.0, you will need to upgrade your install.