code: def set_allowed_domains(self, allowed_domains):
          
          if allowed_domains is not None:
              allowed_domains = tuple(allowed_domains)
          self._allowed_domains = allowed_domains
docs: Set the sequence of allowed domains, or None.