func CopyVersionHistoryItem(item *historyspb.VersionHistoryItem) *historyspb.VersionHistoryItem {
	return NewVersionHistoryItem(item.EventId, item.Version)
}
CopyVersionHistoryItem create a new instance of VersionHistoryItem.
package versionhistory
import (
	"fmt"
	historyspb "go.temporal.io/server/api/history/v1"
)
func NewVersionHistoryItem(eventID int64, version int64) *historyspb.VersionHistoryItem {
	if eventID < 0 || version < 0 {
		panic(fmt.Sprintf("invalid version history item event ID: %v, version: %v", eventID, version))
	}
	return &historyspb.VersionHistoryItem{EventId: eventID, Version: version}
}