src/transformers/modeling_tf_utils.py/TFPreTrainedModel/from_config
class TFPreTrainedModel:    def from_config(cls, config, **kwargs):
        if isinstance(config, PretrainedConfig):
            return cls._from_config(config, **kwargs)
        return cls._from_config(cls.config_class.from_dict(config, **kwargs))