code: def reduce_ctype(obj):
      assert_spawning(obj)
      if isinstance(obj, ctypes.Array):
          return rebuild_ctype, (obj._type_, obj._wrapper, obj._length_)
      else:
          return rebuild_ctype, (type(obj), obj._wrapper, None)
  
imports: import ctypes
  import weakref
  from .None import heap
  from .None import get_context
  from .context import reduction, assert_spawning
label_desc: Use image node_id 8 for calling a global function with example usage: reduce_ctype(obj) and returns: rebuild_ctype,  obj,  obj,  obj, rebuild_ctype,  type,  obj,  None