def METHOD_NAME(self, x, level):
    if not x:
        return 'frozenset()'
    x = _possibly_sorted(x)
    return self._repr_iterable(x, level, 'frozenset({', '})',
                               self.maxfrozenset)