code: def flatten(self, max_value: int) -> FrozenSet[int]:
          
          return frozenset(self.iter(max_value))
docs: Return a set of all values contained in the sequence set.
  
          Args:
              max_value: The maximum value, in place of any ``*``.