code: func (p *basePlan) GetParentByIndex(index int) (parent Plan) {
  	if index < len(p.parents) && index >= 0 {
  		return p.parents[index]
  	}
  	return nil
  }
docs: // GetParentByIndex implements Plan GetParentByIndex interface.