code: def is_field_ignore_extra_complaint(type_cls, field, ignore_extra):
      # ignore_extra param has default False value, for speed purpose no need to propagate False
      if not ignore_extra:
          return False
  
      if not is_type_cls(type_cls, field.type):
          return False
  
      if PY2:
          return (
              "ignore_extra" in inspect.getargspec(field.factory).args
          )
      else:
          return (
              "ignore_extra"
              in inspect.signature(field.factory).parameters
          )
  
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 6 for calling a global function with example usage: is_field_ignore_extra_complaint(type_cls, field, ignore_extra) and returns: False, False, unknown, unknown