code: def _reset(self):
          
          with self._lock:
              # Start listening to services with the new filter
              self.stop()
              self.start()
  
              for svc_ref in self.get_bindings():
                  # Check if the current reference matches the filter
                  if not self.requirement.filter.matches(
                      svc_ref.get_properties()
                  ):
                      # Not the case: emulate a service departure
                      # The instance life cycle will be updated as well
                      self.on_service_departure(svc_ref)
docs: Called when the filter has been changed