from contextlib import suppress


def suppress2d(D_dict, threshold):
    """
    Two dimensional of suppress(D, threshold) that suppresses values with absolutes values less than threshold
    in a dictionary of dictionaries such as is returned by forward2d(listlist)
    :param D_dict: dictionary of dictionaries
    :param threshold: value to suppress below
    :return: dictionary of dictionaries with same keys as D_dict
    >>> suppress2d(forward2d([[1, 2, 3, 4]]), 1) == { \
           (2, 0): {(0, 0): 0}, \
           (1, 0): {(0, 0): -2.0}, \
           (0, 0): {(0, 0): 5.0}, \
           (2, 1): {(0, 0): 0} \
        }
    True
    """
    return {key:suppress(D_dict[key], threshold) for key in D_dict.keys()}