class_docstr: a popen-based pipe for parallel and distributed computing
class_docstr_tok: ["a","popen-based","pipe","for","parallel","and","distributed","computing"]
docstr: terminate the pipe
docstr_tok: ["terminate","the","pipe"]
code: def kill(self):
      """terminate the pipe"""
      if self._pid > 0:
          if self.verbose:
              print("Kill pid=%d" % self._pid)
          os.kill(self._pid, signal.SIGTERM)
          os.waitpid(self._pid, 0)
          self._pid = 0
      return
  
file_path: pathos/pathos/connection.py
imports: import os
  import sys
  import signal
  import random
  import string
  from pathos.selector import Selector
  from pathos.util import _str
label_desc: Use image node_id 8 for calling the Pipe obj's underlying member method code with example usage: obj.kill() without return types