def METHOD_NAME(self):
    TF_CONFIG = get_tf_config()
    logger.info("TF_CONFIG is {}".format(TF_CONFIG))
    task_type, task_id = get_tf_config_task_type_and_index()
    self._role = task_type + ":" + str(task_id)
    if len(TF_CONFIG["cluster"][task_type]) > 1:
        self._address = TF_CONFIG["cluster"][task_type][task_id]
    else:
        self._address = TF_CONFIG["cluster"][task_type][0]
    if self._role is None:
        return
    self.task_type, self.task_id = self._role.split(":")
    self.task_id = int(self.task_id)
    self._is_chief = self.task_type == "chief" and self.task_id == 0
    self.curr_ps_address = TF_CONFIG["cluster"]["ps"]
    logger.info("Initial ps address is %s" % self.curr_ps_address)