def METHOD_NAME(self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any]) -> Mapping[str, Any]:
    """
    Return the latest state by comparing the cursor value in the latest record with the stream's most recent state object
    and returning an updated state object.
    """
    latest_state = latest_record.get(self.cursor_field)
    current_state = current_stream_state.get(self.cursor_field) or latest_state
    if current_state:
        return {self.cursor_field: max(latest_state, current_state)}
    return {}