class_docstr: Cluster manager for TensorFlow servers.
docstr: Check whether an address is chief or not.
  
  If the argument `address` is not provided,
  it will check whether the local address is chief.
  
  Args:
      address (str): node address e.g. ip
  
  Returns:
      bool: Whether address or self is chief
docstr_tok: ["Check","whether","an","address","is","chief","or","not",".","If","the","argument","`","address","`","is","not","provided",",","it","will","check","whether","the","local","address","is","chief",".","Args",":","address","(","str",")",":","node","address","e.g",".","ip","Returns",":","bool",":","Whether","address","or","self","is","chief"]
code: def is_chief(self, address=None):
      """
      Check whether an address is chief or not.
  
      If the argument `address` is not provided,
      it will check whether the local address is chief.
  
      Args:
          address (str): node address e.g. ip
  
      Returns:
          bool: Whether address or self is chief
      """
      address = address or self.get_local_address()
      return address == self._chief
  
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 5 for calling the Cluster obj's underlying member method code with example usage: obj.is_chief(address) and returns: unknown