code: def _write_failure_reason_file(failure_msg):
      """Create a file 'failure' with failure reason written if bootstrap runtime env failed.
  
      See: https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo.html
      Args:
          failure_msg: The content of file to be written.
      """
      if not os.path.exists(FAILURE_REASON_PATH):
          with open(FAILURE_REASON_PATH, "w") as f:
              f.write("RuntimeEnvironmentError: " + failure_msg)
  
file_path: sagemaker-python-sdk/src/sagemaker/remote_function/runtime_environment/bootstrap_runtime_environment.py
imports: from __future__ import absolute_import
  import argparse
  import getpass
  import sys
  import os
  import shutil
  import pathlib
label_desc: Use image node_id 7 for calling a global function with example usage: _write_failure_reason_file(failure_msg) without return types