code: def is_discrete(self):
          
          for domain in self.domains.values():
              if not domain.is_discrete():
                  return False
          return True
docs: Return whether this space is discrete