parameters: (cls, sets)
return_statement: return cls.from_set(aggregated)
docstring: Used to work with an iterable of set.
docstring_summary: Used to work with an iterable of set.
docstring_tokens: Used to work with an iterable of set .
function: def from_sets(cls, sets):
          """
          Used to work with an iterable of set.
          """
          aggregated = set()
          sets = list(sets)
          for set_ in sets:
              if isinstance(set_, BaseContextSet):
                  aggregated |= set_._set
              else:
                  aggregated |= set_
          return cls.from_set(aggregated)
function_tokens: def from_sets ( cls , sets ) : aggregated = set ( ) sets = list ( sets ) for set_ in sets : if isinstance ( set_ , BaseContextSet ) : aggregated |= set_ . _set else : aggregated |= set_ return cls . from_set ( aggregated )