code: def _send_signal_to_processes_with_depth(
      processes: Iterable[psutil.Process],
      sig: signal.Signals,
      depth: int,
  ):
      for process in processes:
          for child in _get_child_processes_with_depth(process, depth):
              try:
                  child.send_signal(sig)
              except psutil.NoSuchProcess:
                  pass
  
imports: import collections
  from concurrent import futures
  import dataclasses
  import functools
  import signal
  import subprocess
  import threading
  import time
  from typing import Any, Callable, Iterable, List, Mapping, MutableMapping, Optional, Sequence, Tuple
  from absl import logging
  from launchpad import flags
  import psutil
  import termcolor
label_desc: Use image node_id 6 for calling a global function with example usage: _send_signal_to_processes_with_depth(processes, sig, depth) without return types