<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flatten(self, max_value: int) -> FrozenSet[int]: """Return a set of all values contained in the sequence set. Args: max_value: The maximum value, in place of any ``*``. """

        return frozenset(self.iter(max_value))