code: def compute_real_exit_code(exit_code):
      # SystemExit's code can be integer or string, but os._exit only accepts integers
      if isinstance(exit_code, numbers.Integral):
          return exit_code
      else:
          return 1
  
file_path: spark/python/pyspark/daemon.py
imports: import numbers
  import os
  import signal
  import select
  import socket
  import sys
  import traceback
  import time
  import gc
  from errno import EINTR, EAGAIN
  from socket import AF_INET, AF_INET6, SOCK_STREAM, SOMAXCONN
  from signal import SIGHUP, SIGTERM, SIGCHLD, SIG_DFL, SIG_IGN, SIGINT
  from pyspark.serializers import read_long, write_int, write_with_length, UTF8Deserializer
label_desc: Use image node_id 1 for calling a global function with example usage: compute_real_exit_code(exit_code) and returns: exit_code, int