def METHOD_NAME(cls, pretrained_model_name_or_path, **kwargs):
    try:
        return super().METHOD_NAME(pretrained_model_name_or_path, **kwargs)
    except OSError:
        warnings.warn(
            f"Loading a tokenizer inside {cls.__name__} from a config that does not"
            " include a `tokenizer_class` attribute is deprecated and will be "
            "removed in v5. Please add `'tokenizer_class': 'Wav2Vec2CTCTokenizer'`"
            " attribute to either your `config.json` or `tokenizer_config.json` "
            "file to suppress this warning: ",
            FutureWarning,
        )
        feature_extractor = Wav2Vec2FeatureExtractor.METHOD_NAME(pretrained_model_name_or_path, **kwargs)
        tokenizer = Wav2Vec2CTCTokenizer.METHOD_NAME(pretrained_model_name_or_path, **kwargs)
        return cls(feature_extractor=feature_extractor, tokenizer=tokenizer)