import gzip
import pickle


def default_decompression(compression_name: str, data):

    """
        Decompression mapping, maps compression string name
        to different decompression functions.

        Return:
            Any
    """

    return {
        'gzip':         gzip.decompress,
        'gzip_pickle':  lambda x: pickle.loads(gzip.decompress(x)),
    }.get(compression_name, 'gzip_pickle')(data)