from typing import Any
import json
import gzip
import base64


def decompress(string: str) -> Any:
    """
    Convenience function for decompressing a string that's been
    compressed. Base64 decodes the string, decodes it,
    decompresses it, and loads.

    Args:
        - string (str): the string to decompress

    Returns:
        - Any: The object resulting from the decompression
    """
    return json.loads(gzip.decompress(base64.b64decode(string)).decode())