class_docstr: Cluster manager for TensorFlow servers.
docstr: Terminate.
docstr_tok: ["Terminate","."]
code: def terminate(self):
      """Terminate."""
      logging.debug("Terminating cluster...")
      for p in self.subprocesses:
          os.killpg(os.getpgid(p.pid), signal.SIGTERM)
  
imports: import atexit
  import contextlib
  import json
  import os
  import signal
  import subprocess
  import sys
  import warnings
  from abc import ABCMeta, abstractmethod
  import paramiko
  from autodist.const import DEFAULT_PORT_RANGE, DEFAULT_WORKING_DIR, ENV
  from autodist.resource_spec import ResourceSpec
  from autodist.utils import logging
label_desc: Use image node_id 11 for calling the Cluster obj's underlying member method code with example usage: obj.terminate() without return types