def METHOD_NAME(configuration, metadata, set_wazuh_configuration_vdt, truncate_monitored_files,
                          clean_cve_tables_func, restart_modulesd_function):
    '''
    description: Check if vulnerability detector download feeds from the correct year based on `update_from_year`
                 option.
    test_phases:
        - Set a custom Wazuh configuration.
        - Restart wazuh-modulesd.
        - Check that the feed is being downloading from the specified year until current date.
    wazuh_min_version: 4.4.0
    tier: 0
    parameters:
        - configuration:
            type: dict
            brief: Wazuh configuration data. Needed for set_wazuh_configuration fixture.
        - metadata:
            type: dict
            brief: Wazuh configuration metadata
        - set_wazuh_configuration_vdt:
            type: fixture
            brief: Set the wazuh configuration according to the configuration data.
        - truncate_monitored_files:
            type: fixture
            brief: Truncate all the log files and json alerts files before and after the test execution.
        - clean_cve_tables_func:
            type: fixture
            brief: Clean all tables of the CVE database before and after finishing the test.
        - restart_modulesd_catching_ossec_conf_error:
            type: fixture
            brief: Restart the `modulesd` daemon and catch the ossec configuration errors.
    assertions:
        - Verity that the warning message is catched.
    input_description:
        - The `test_providers_update_from_year.yaml` file provides the module configuration for this test.
    expected_output:
        - "INFO: 'update_from_year' option at module 'vulnerability-detector' is deprecated"
        - "'update_from_year' option cannot be used for '{provider}' provider."
        - f"Invalid option 'update_from_year' for '{provider}' provider at 'vulnerability-detector'"
    '''
    provider = metadata['provider']
    evm.check_invalid_provider_update_from_year_log(provider)