code: func GroupOrDie(group string) *apimachinery.GroupMeta {
  	groupMeta, found := groupMetaMap[group]
  	if !found {
  		if group == "" {
  			panic("The legacy v1 API is not registered.")
  		} else {
  			panic(fmt.Sprintf("Group %s is not registered.", group))
  		}
  	}
  	groupMetaCopy := *groupMeta
  	return &groupMetaCopy
  }
docs: // TODO: This is an expedient function, because we don't check if a Group is
  // supported throughout the code base. We will abandon this function and
  // checking the error returned by the Group() function.