def METHOD_NAME(restart_required_logtest_daemons, get_configuration,
                  configure_environment, configure_cdbs_list,
                  wait_for_logtest_startup, connect_to_sockets_function):
    '''
    description: Checks if modifying the configuration of the cdb list, by using its labels, takes effect when opening
                 new logtest sessions without having to reset the manager. To do this, it sends a request to logtest
                 socket with the test case and it checks that the result matches with the test case result.
    wazuh_min_version: 4.2.0
    tier: 0
    parameters:
        - restart_required_logtest_daemons:
            type: fixture
            brief: Wazuh logtests daemons handler.
        - get_configuration:
            type: fixture
            brief: Get configurations from the module.
        - configure_environment:
            type: fixture
            brief: Configure a custom environment for testing. Restart Wazuh is needed for applying the configuration.
        - configure_cdbs_list:
            type: fixture
            brief: Configure a custom cdbs for testing.
        - 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 result does not contain errors.
        - Verify that the result is from the cdb list.
        - Verify that the 'rule_id' sent matches with the result.
    input_description: Some test cases are defined in the module. These include some input configurations stored in
                       the 'cdb_list.yaml'.
    expected_output:
        - result.error == 0
        - cdb not in result.data.output
        - result.data.output.rule.id == test_case.rule_id
    tags:
        - cdb
        - rules
        - 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 = loads(response)
    assert result['error'] == 0
    if 'test_exclude' in get_configuration:
        assert 'cdb' not in result['data']['output']
    else:
        assert result['data']['output']['rule']['id'] == get_configuration['rule_id']