def METHOD_NAME(full_op, type_param_non_default):
    """Tests _apply_typeparam_dict and by necessity getattr."""
    for key, value in type_param_non_default.items():
        full_op.type_param[key] = value
    cpp_obj = DummyCppObj()
    full_op._cpp_obj = cpp_obj
    full_op._apply_typeparam_dict(cpp_obj, DummySimulation())
    for key, value in type_param_non_default.items():
        expected_dict = {"foo": 1, **value}
        assert cpp_obj.getTypeParam(key) == expected_dict