code: func TopologySelectorRequirementsAsSelector(tsm []v1.TopologySelectorLabelRequirement) (labels.Selector, error) {
  	if len(tsm) == 0 {
  		return labels.Nothing(), nil
  	}
  
  	selector := labels.NewSelector()
  	for _, expr := range tsm {
  		r, err := labels.NewRequirement(expr.Key, selection.In, expr.Values)
  		if err != nil {
  			return nil, err
  		}
  		selector = selector.Add(*r)
  	}
  
  	return selector, nil
  }
docs: // TopologySelectorRequirementsAsSelector converts the []TopologySelectorLabelRequirement api type into a struct
  // that implements labels.Selector.