class_docstr: A PClass is a python class with a fixed set of specified fields. PClasses are declared as python classes inheriting
  from PClass. It is defined the same way that PRecords are and behaves like a PRecord in all aspects except that it
  is not a PMap and hence not a collection but rather a plain Python object.
  
  
  More documentation and examples of PClass usage is available at https://github.com/tobgu/pyrsistent
docstr: Set a field in the instance. Returns a new instance with the updated value. The original instance remains
  unmodified. Accepts key-value pairs or single string representing the field name and a value.
  
  >>> from pyrsistent import PClass, field
  >>> class AClass(PClass):
  ...     x = field()
  ...
  >>> a = AClass(x=1)
  >>> a2 = a.set(x=2)
  >>> a3 = a.set('x', 3)
  >>> a
  AClass(x=1)
  >>> a2
  AClass(x=2)
  >>> a3
  AClass(x=3)
docstr_tok: ["Set","a","field","in","the","instance",".","Returns","a","new","instance","with","the","updated","value",".","The","original","instance","remains","unmodified",".","Accepts","key-value","pairs","or","single","string","representing","the","field","name","and","a","value",".",">",">",">","from","pyrsistent","import","PClass",",","field",">",">",">","class","AClass","(","PClass",")",":","...","x","=","field","(",")","...",">",">",">","a","=","AClass","(","x=1",")",">",">",">","a2","=","a.set","(","x=2",")",">",">",">","a3","=","a.set","(","'","x","'",",","3",")",">",">",">","a","AClass","(","x=1",")",">",">",">","a2","AClass","(","x=2",")",">",">",">","a3","AClass","(","x=3",")"]
code: def set(self, *args, **kwargs):
      """
      Set a field in the instance. Returns a new instance with the updated value. The original instance remains
      unmodified. Accepts key-value pairs or single string representing the field name and a value.
  
      >>> from pyrsistent import PClass, field
      >>> class AClass(PClass):
      ...     x = field()
      ...
      >>> a = AClass(x=1)
      >>> a2 = a.set(x=2)
      >>> a3 = a.set('x', 3)
      >>> a
      AClass(x=1)
      >>> a2
      AClass(x=2)
      >>> a3
      AClass(x=3)
      """
      if args:
          kwargs[args[0]] = args[1]
  
      factory_fields = set(kwargs)
  
      for key in self._pclass_fields:
          if key not in kwargs:
              value = getattr(self, key, _MISSING_VALUE)
              if value is not _MISSING_VALUE:
                  kwargs[key] = value
  
      return self.__class__(_factory_fields=factory_fields, **kwargs)
  
imports: from pyrsistent._checked_types import InvariantException, CheckedType, _restore_pickle, store_invariants
  from pyrsistent._field_common import set_fields, check_type, is_field_ignore_extra_complaint, PFIELD_NO_INITIAL, serialize, check_global_invariants
  from pyrsistent._transformations import transform
label_desc: Use image node_id 2 for calling the PClass obj's underlying member method code with example usage: obj.set() and returns: self