code: def kill_child_processes(pid):
      """Kill child processes
  
      Kills all nested child process ids for a specific pid
  
      Args:
          pid (int): process id
      """
      child_pids = get_child_process_ids(pid)
      for child_pid in child_pids:
          os.kill(child_pid, 15)
  
file_path: sagemaker-python-sdk/src/sagemaker/local/utils.py
imports: from __future__ import absolute_import
  import os
  import logging
  import shutil
  import subprocess
  import json
  import re
  import errno
  from distutils.dir_util import copy_tree
  from six.moves.urllib.parse import urlparse
  from sagemaker import s3
label_desc: Use image node_id 4 for calling a global function with example usage: kill_child_processes(pid) without return types