code: def assert_spawning(obj):
      if get_spawning_popen() is None:
          raise RuntimeError(
              "%s objects should only be shared between processes"
              " through inheritance" % type(obj).__name__
          )
  
imports: import os
  import sys
  import threading
  from .None import process
  from .None import reduction
label_desc: Use image node_id 4 for calling a global function with example usage: assert_spawning(obj) without return types