code: def kill_child_processes(parent_pid: int) -> bool:
      """Killing a process and all its child processes
  
      Args:
          parent_pid: process id of parent
  
      Returns:
          True or False in case of success or failure
      """
  
      logger.debug(f"Killing process id: {parent_pid}")
  
      try:
          parent = psutil.Process(parent_pid)
          if parent.status() == "zombie":
              return False
          children = parent.children(recursive=True)
          for child in children:
              child.kill()
          parent.kill()
          return True
      except psutil.NoSuchProcess:
          logger.warning(
              f"Cannot kill process id: {parent_pid}. No such process."
          )
          return False
  
imports: import logging
  import os
  import pickle
  import random
  import zipfile
  from typing import Any
  import numpy
  import openai
  import psutil
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: kill_child_processes(parent_pid) and returns: True, False, False