code: def _is_field_primitive_compound(field: Field):
      if (
          field.on_serialize is not None
          or field.on_deserialize is not None
      ):
          return False
  
      def check_type(field_type):
          if isinstance(field_type, _primitive_field_types):
              return True
          if isinstance(field_type, (ListType, TupleType)):
              if all(
                  check_type(element_type) or element_type is Ellipsis
                  for element_type in field_type._field_types
              ):
                  return True
          if isinstance(field_type, DictType):
              if all(
                  isinstance(element_type, _primitive_field_types)
                  or element_type is Ellipsis
                  for element_type in (
                      field_type.key_type,
                      field_type.value_type,
                  )
              ):
                  return True
          return False
  
      return check_type(field.field_type)
  
imports: import operator
  import weakref
  from typing import Dict, List, Type, Tuple
  import cloudpickle
  from ..core import Serializer, Placeholder, buffered
  from .field import Field
  from .field_type import PrimitiveFieldType, ListType, TupleType, DictType, DtypeType, DatetimeType, TimedeltaType, TZInfoType
label_desc: Use image node_id 1 for calling a global function with example usage: _is_field_primitive_compound(field) and returns: check_type, False, False, True, True, True