import pickle
import base64


def unserialize(x):
    """
    Unserialize a serialized object.

    :param x: Object to be unserialized
    :type x: string
    :return: Unserialized object
    :rtype: arbitrary (typically a dictionary)
    """
    return pickle.loads(base64.b64decode(x.encode()))