def METHOD_NAME(cls,
         model_dir=None,  # type: Text
         model_metadata=None,  # type: Metadata
         cached_component=None,  # type: Optional[Component]
         **kwargs  # type: **Any
         ):
    # type: (...) -> CountVectorsFeaturizer
    meta = model_metadata.for_component(cls.name)
    if model_dir and meta.get("featurizer_file"):
        file_name = meta.get("featurizer_file")
        featurizer_file = os.path.join(model_dir, file_name)
        return utils.pycloud_unpickle(featurizer_file)
    else:
        logger.warning("Failed to load featurizer. Maybe path {} "
                       "doesn't exist".format(os.path.abspath(model_dir)))
        return CountVectorsFeaturizer(meta)