def get_last_saved_timestamp() -> Optional[str]:
    """
    This function retrieves the last saved timestamp from the state. If no
    timestamp is found, it returns 0.

    Parameters:
    date_format (str): The format in which the date and time are represented.
    Default is '%Y-%m-%d %H:%M:%S' which
    represents YYYY-MM-DD HH:MM:SS format.

    Returns:
    int: The timestamp of the last successful run of this function as a Unix
    timestamp. If the function is being run for
    the first time, it returns 0.
    """
    last_run_date_time = state.get()
    logging.debug("last saved time stamp is %s", last_run_date_time)

    return last_run_date_time or ""

    This function retrieves the last saved timestamp from the state. If no
    timestamp is found, it returns 0.

    Parameters:
    date_format (str): The format in which the date and time are represented.
    Default is '%Y-%m-%d %H:%M:%S' which
    represents YYYY-MM-DD HH:MM:SS format.

    Returns:
    int: The timestamp of the last successful run of this function as a Unix
    timestamp. If the function is being run for
    the first time, it returns 0.
    
Solutions/CognyteLuminar/Data Connectors/CognyteLuminar/main.py