def METHOD_NAME(self):
    with SoftTemporaryDirectory(dir=Path(".")) as tmp_relative_dir:
        relative_save_directory = Path(tmp_relative_dir) / "model"
        DummyModel().save_pretrained(relative_save_directory, config=CONFIG)
        model = DummyModel.from_pretrained(relative_save_directory)
        self.assertDictEqual(model.config, CONFIG)