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: Serialize the current PClass using custom serializer functions for fields where
  such have been supplied.
docstr_tok: ["Serialize","the","current","PClass","using","custom","serializer","functions","for","fields","where","such","have","been","supplied","."]
code: def serialize(self, format=None):
      """
      Serialize the current PClass using custom serializer functions for fields where
      such have been supplied.
      """
      result = {}
      for name in self._pclass_fields:
          value = getattr(self, name, _MISSING_VALUE)
          if value is not _MISSING_VALUE:
              result[name] = serialize(
                  self._pclass_fields[name].serializer, format, value
              )
  
      return result
  
imports: import six
  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 4 for calling the PClass obj's underlying member method code with example usage: obj.serialize(format) and returns: result