code: def _get_valid_failure_exit_code(exit_code) -> int:
      """Normalize exit code for terminating the process"""
      try:
          valid_exit_code = int(exit_code)
      except (TypeError, ValueError):
          valid_exit_code = DEFAULT_FAILURE_CODE
  
      return valid_exit_code
  
file_path: sagemaker-python-sdk/src/sagemaker/remote_function/errors.py
imports: from __future__ import absolute_import
  import os
  from tblib import pickling_support
  from sagemaker.s3 import s3_path_join
  import sagemaker.remote_function.core.serialization
label_desc: Use image node_id 1 for calling a global function with example usage: _get_valid_failure_exit_code(exit_code) and returns: valid_exit_code