def METHOD_NAME(self, model_path):
    # TODO: Consider removing this in the future as well as loading via `model_path` in `__init__`.
    import warnings
    warnings.warn(
        "`load_from_disk` method is deprecated. Please save and load using `save_pretrained` and `from_pretrained` methods.",
        DeprecationWarning,
        stacklevel=2,
    )
    self.load_state_dict(load_cached_state_dict(model_path))
    self.eval()