docs: def terminate_processes(pid_list):
      """Terminate a list of processes by sending to each of them a SIGTERM signal, 
          pre-emptively checking if its PID might have been reused.
      
      Parameters
      ----------
      pid_list : list
          A list of process identifiers identifying active processes.
      """
  
      for proc in psutil.process_iter():
          if proc.pid in pid_list:
              proc.terminate()