import json


def get_dict_from_file(path) -> dict:
    """
    Allows to load any dictionary (that has been stored via save_dict_to_file()) from a file under the given path.
    Note that all values are represented as string. E.g. if a key was 1, it is not "1"

    :param path: the path where the file is located
    :return: the loaded dictionary
    """
    with open(path, 'r') as txt_file:
        data = txt_file.readlines()
        return json.loads(data[0])