import json


def get_dict(raw_json: bytes) -> dict:
    """
    In the database our dictionaries are stored as raw bytes,
    this function returns them decoded and transformed back as dictionaries.

    :param raw_json: A JSON represented as raw bytes string
    :return: A dictionary from the decoded bytes
    """
    return json.loads(raw_json.decode('utf-8'))