code: func (r *Session) SetRetries(retries int) *Session {
  	var s Session
  	s = *r
  	s.Retries = retries
  
  	return &s
  }
docs: // SetRetries creates a copy of the session and sets the passed retries into it
  // before returning it.