code: def infer_set(values: GenericSet) -> Set:
      
      if not values:
          return Set(null)
      return Set(highest_precedence(map(infer, values)))
docs: Infer the :class:`~ibis.expr.datatypes.Set` type of `values`.