def METHOD_NAME(get_configuration, configure_environment, file_monitoring,
                              configure_local_internal_options_module, daemons_handler_module):
    '''
    description: Check if the current OS platform falls to the 'scheduled' mode when 'realtime' is not available.
                 For this purpose, the test performs a CUD set of operations to a file with 'realtime' mode set as
                 the monitoring option in the 'ossec.conf' file. Firstly it checks for the initial 'realtime' event
                 appearing in the logs, and if the current OS does not support it, wait for the initial FIM scan
                 mode. After this, the set of operations takes place and the expected behavior is the events will be
                 generated with 'scheduled' mode and not 'realtime' as it is set in the configuration.
    wazuh_min_version: 4.2.0
    tier: 0
    parameters:
        - get_configuration:
            type: fixture
            brief: Get configurations from the module.
        - configure_environment:
            type: fixture
            brief: Configure a custom environment for testing.
        - file_monitoring:
            type: fixture
            brief: Handle the monitoring of a specified file.
        - configure_local_internal_options_module:
            type: fixture
            brief: Configure the local internal options file.
        - daemons_handler_module:
            type: fixture
            brief: Handle the Wazuh daemons.
    assertions:
        - Verify that FIM changes the monitoring mode from 'realtime' to 'scheduled' when it is not supported.
    input_description: A test case (ossec_conf) is contained in external YAML file (wazuh_conf_check_realtime.yaml)
                       which includes configuration settings for the 'wazuh-syscheckd' daemon and, it is combined
                       with the testing directory to be monitored defined in this module.
    expected_output:
        - r'.*Sending FIM event: (.+)$' ('added', 'modified' and 'deleted' events)
    tags:
        - realtime
        - scheduled
    '''
    log_monitor.start(timeout=realtime_flag_timeout, callback=callback_ignore_realtime_flag,
                      error_message="Did not receive expected 'Ignoring flag for real time monitoring on  \
                                     directory: ...' event", update_position=False)
    detect_initial_scan(log_monitor)
    regular_file_cud(directory_str, log_monitor, file_list=[test_file], triggers_event=True,
                     event_mode="scheduled", min_timeout=15)