def _symmetric_dict(
    dictionary: dict[tuple[str, str], float]
) -> dict[tuple[str, str], float]:
    """Make a dictionary symmetric."""
    for (i, j), constant in list(dictionary.items()):
        dictionary[j, i] = constant
    return dictionary