code: def _structure_set(self, obj, cl):
          
          if is_bare(cl) or cl.__args__[0] is Any:
              return set(obj)
          else:
              elem_type = cl.__args__[0]
              return {
                  self._structure_func.dispatch(elem_type)(e, elem_type)
                  for e in obj
              }
docs: Convert an iterable into a potentially generic set.