docstr: Used to work with an iterable of set.
docstr_tok: ["Used","to","work","with","an","iterable","of","set","."]
code: 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)
  
file_path: catboost/contrib/python/jedi/py3/jedi/common/context.py
label_desc: Use image node_id 4 for calling the BaseContextSet obj's underlying member method code with example usage: obj.from_sets(cls, sets) and returns: cls