def METHOD_NAME(get_configuration, restart_required_logtest_daemons,
                       configure_rules_list, wait_for_logtest_startup,
                       connect_to_sockets_function):
    '''
    description: Check if 'wazuh-logtest' works correctly in 'verbose' mode for rules debugging. To do this, it sends
                 the inputs through a socket, receives and decodes the message. Then, it checks
                 if any invalid token or session token is not caught.
    wazuh_min_version: 4.2.0
    tier: 0
    parameters:
        - get_configuration:
            type: fixture
            brief: Get configuration from the module.
        - restart_required_logtest_daemons:
            type: fixture
            brief: Wazuh logtests daemons handler.
        - configure_rules_list:
            type: fixture
            brief: Configure a custom rules for testing. Restart Wazuh is not needed for applying the configuration
                   is optional.
        - wait_for_logtest_startup:
            type: fixture
            brief: Wait until logtest has begun.
        - connect_to_sockets_function:
            type: fixture
            brief: Function scope version of 'connect_to_sockets' which connects to the specified sockets for the test.
    assertions:
        - Verify that the logtest reply message has no run error.
        - Verify that the 'rule_id' within the reply message is correct.
        - Verify that logtest is running in verbose mode.
        - Verify that when running in verbose mode the local rule debug messages has been written
        - Verify that when running in verbose mode the local rule debug messages written are the expected count.
        - Verify that if a warning message is caught it matches with any test case message.
    input_description: Some test cases are defined in the module. These include some input configurations stored in
                       the 'rules_verbose.yaml'.
    expected_output:
        - 'The rules_debug field was not found in the response data'
        - 'The warning message was not found in the response data'
        - 'Error when executing .* in daemon .*. Exit status: .*'
    tags:
        - settings
        - analysisd
    '''
    # send the logtest request
    receiver_sockets[0].send(get_configuration['input'], size=True)
    # receive logtest reply and parse it
    response = receiver_sockets[0].receive(size=True).rstrip(b'\x00').decode()
    result = json.loads(response)
    assert result['error'] == 0
    assert result['data']['output']['rule']['id'] == get_configuration['rule_id']
    if 'verbose_mode' in get_configuration and get_configuration['verbose_mode']:
        if 'rules_debug' in result['data']:
            assert result['data']['rules_debug'][-len(local_rules_debug_messages):] == local_rules_debug_messages
        else:
            assert False, 'The rules_debug field was not found in the response data'
    else:
        assert 'rules_debug' not in result['data']
    if 'warning_message' in get_configuration:
        r = re.compile(get_configuration['warning_message'])
        match_list = list(filter(r.match, result['data']['messages']))
        assert match_list, 'The warning message was not found in the response data'