code: def __init__(
      self, type, invariant, initial, mandatory, factory, serializer
  ):
      self.type = type
      self.invariant = invariant
      self.initial = initial
      self.mandatory = mandatory
      self._factory = factory
      self.serializer = serializer
  
imports: import six
  import sys
  from pyrsistent._checked_types import CheckedPMap, CheckedPSet, CheckedPVector, CheckedType, InvariantException, _restore_pickle, get_type, maybe_parse_user_type, maybe_parse_many_user_types
  from pyrsistent._checked_types import optional
  from pyrsistent._checked_types import wrap_invariant
  import inspect
label_desc: Use image node_id 1 to create a new _PField object from inherited base classes: object with example: obj = _PField(type, invariant, initial, mandatory, factory, serializer)