def METHOD_NAME(path: str) -> Dict[str, Any]:
    def load(path):
        assert path.endswith('.pkl') or path.endswith(
            '.pkl.gz'), f'bad suffix in {path} as pickle file.'
        open_fn = gzip.open if path.endswith('.gz') else open
        with open_fn(path, 'rb') as f:
            return pickle.load(f)
    ret = load(path)
    ret = uncompress_features(ret)
    return ret