code: def pset(iterable=(), pre_size=8):
      """
      Creates a persistent set from iterable. Optionally takes a sizing parameter equivalent to that
      used for :py:func:`pmap`.
  
      >>> s1 = pset([1, 2, 3, 2])
      >>> s1
      pset([1, 2, 3])
      """
      if not iterable:
          return _EMPTY_PSET
  
      return PSet._from_iterable(iterable, pre_size=pre_size)
  
imports: from collections.abc import Set, Hashable
  import sys
  from typing import TypeVar, Generic
  from pyrsistent._pmap import pmap
label_desc: Use image node_id 1 for calling a global function with example usage: pset(iterable, pre_size) and returns: PSet, _EMPTY_PSET