@staticmethod
def _dict_to_tuples(dictionary: dict) ->tuple:
    """Since dictionaries are not hashable, this is a helper function
        converting a dictionary into a sorted tuple."""
    return tuple(sorted(dictionary.items()))
