def METHOD_NAME(argument_spec, module_parameters, extra_params):
    extra_opts = {
        'subopt1': {
            'type': 'dict',
            'options': {
                'sub_1_1': {},
            }
        }
    }
    with pytest.raises(TypeError, match=r"(Value '.*?' in the sub parameter field '.*?' must by a dict, not '.*?')"
                                        r"|(dictionary requested, could not parse JSON or key=value)"):
        _list_no_log_values(argument_spec(extra_opts), module_parameters(extra_params))