This is thrown by the timm package. Checkout this line in the source code.
timm
For me it was thrown for version timm==0.5.4. Upgrading the latest version (via pip install --upgrade timm) solved the issue.
timm==0.5.4
pip install --upgrade timm