code: func NewTraceV1(trace []*topdown.Event, pretty bool) (result TraceV1, err error) {
  	if pretty {
  		return newPrettyTraceV1(trace)
  	}
  	return newRawTraceV1(trace)
  }
docs: // NewTraceV1 returns a new TraceV1 object.