<filename>test/testing_utils.py
def dict_side_effect_fn(dict_):
    def func(*args):
        return dict_[args]

    return func

<filename>test/testing_utils.py
def dict_side_effect_fn(dict_):
    def func(*args):
        return dict_[args]

    return func
