def METHOD_NAME(file_monitor=None, callback='', error_message=None, update_position=True, timeout=fw.T_20,
                    prefix=api.API_PREFIX, accum_results=1, file_to_monitor=fw.API_LOG_FILE_PATH):
    """Check if an API event occurs
    Args:
        file_monitor (FileMonitor): FileMonitor object to monitor the file content.
        callback (str): log regex to check in the file
        error_message (str): error message to show in case of expected event does not occur
        update_position (boolean): filter configuration parameter to search in the file
        timeout (int): timeout to check the event in the file
        prefix (str): log pattern regex
        accum_results (int): Accumulation of matches.
        file_to_monitor (str): File to be monitored.
    """
    file_monitor = FileMonitor(file_to_monitor) if file_monitor is None else file_monitor
    error_message = f"Could not find this event in {file_to_monitor}: {callback}" if error_message is None else \
        error_message
    file_monitor.start(timeout=timeout, update_position=update_position, accum_results=accum_results,
                       callback=make_api_callback(callback, prefix), error_message=error_message)