code: def set_providers(self, *providers):
          
          if self.providers:
              self.clear()
          for provider in providers:
              self.add(provider)
docs: Replace current providers with given ones