code: func GetLocalEndpointIPs(endpointsMap EndpointsMap) map[types.NamespacedName]sets.String {
  	localIPs := make(map[types.NamespacedName]sets.String)
  	for svcPortName, epList := range endpointsMap {
  		for _, ep := range epList {
  			if ep.GetIsLocal() {
  				nsn := svcPortName.NamespacedName
  				if localIPs[nsn] == nil {
  					localIPs[nsn] = sets.NewString()
  				}
  				localIPs[nsn].Insert(ep.IP())
  			}
  		}
  	}
  	return localIPs
  }
docs: // GetLocalEndpointIPs returns endpoints IPs if given endpoint is local - local means the endpoint is running in same host as kube-proxy.