code: def test_exit_code_is_reported_by_subprocess(self):
      def fn_expected_to_exit_with_10():
          sys.exit(10)
  
      mpr = multi_process_runner.MultiProcessRunner(
          fn_expected_to_exit_with_10,
          multi_worker_test_base.create_cluster_spec(num_workers=1),
      )
      mpr.start()
  
      with self.assertRaisesRegex(
          multi_process_runner.UnexpectedSubprocessExitError,
          "Subprocess worker-0 exited with exit code 10",
      ):
          mpr.join()
  
imports: import ctypes
  import json
  import os
  import sys
  import threading
  import time
  import unittest
  from absl import logging
  from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import multi_process_runner
  from tensorflow.python.distribute import multi_worker_test_base
  from tensorflow.python.eager import context
  from tensorflow.python.eager import test
label_desc: Use image node_id 18 for calling the MultiProcessRunnerTest obj's underlying member method code with example usage: obj.test_exit_code_is_reported_by_subprocess() without return types