code: def _test_process_exited(self):
      with self.assertRaises(mp.ProcessExitedException) as e:
          mp.spawn(_test_process_exit, args=(), nprocs=1)
          self.assertEqual(12, e.exit_code)
  
imports: import os
  import pickle
  import random
  import signal
  import sys
  import time
  import unittest
  from torch.testing._internal.common_utils import TestCase, run_tests, IS_WINDOWS, NO_MULTIPROCESSING_SPAWN
  import torch.multiprocessing
label_desc: Use image node_id 3 for calling the SpawnTest obj's underlying member method code with example usage: obj._test_process_exited() without return types