code: def _check_field_parameters(field):
      for t in field.type:
          if not isinstance(t, type) and not isinstance(
              t, six.string_types
          ):
              raise TypeError(
                  "Type parameter expected, not {0}".format(type(t))
              )
  
      if (
          field.initial is not PFIELD_NO_INITIAL
          and not callable(field.initial)
          and field.type
          and not any(isinstance(field.initial, t) for t in field.type)
      ):
          raise TypeError(
              "Initial has invalid type {0}".format(type(field.initial))
          )
  
      if not callable(field.invariant):
          raise TypeError("Invariant must be callable")
  
      if not callable(field.factory):
          raise TypeError("Factory must be callable")
  
      if not callable(field.serializer):
          raise TypeError("Serializer must be callable")
  
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 8 for calling a global function with example usage: _check_field_parameters(field) without return types