import base64
import json


def decode_base64(data):
    """
    decodes from base64.

    :param  string data:
    :return: dict object.
    """
    to_bytes = base64.b64decode(data)

    return json.loads(to_bytes)