def METHOD_NAME(sample_model_path):
    """Make sure that if you load and then re-save any model, the metadata in the config.yml is
    persisted."""
    # Get the module metadata:
    initial_metadata = _load_model_metadata(sample_model_path)
    model = caikit.core.load(sample_model_path)
    with tempfile.TemporaryDirectory() as tempdir:
        model.save(tempdir)
        resaved_metadata = _load_model_metadata(tempdir)
    fields_to_not_check = {"saved", "sample_lib_version", "train"}
    _check_dicts_equal(initial_metadata, resaved_metadata, fields_to_not_check)
    # Fun little extra check, the `train` field _should_ be modified by the code
    assert "optim_method" not in resaved_metadata["train"]