from typing import OrderedDict


def examine_pairwise_result(f, input_doc):
    """
    Test f against input doc and return the resulting dict.

    :param f: a function with a `f(src_obj, dst_dict)` signature
    :param input_doc: the input object
    :return: a dictionary populated via f
    """
    d = OrderedDict()
    f(input_doc, d)
    return d