class_docstr: Cluster manager for TensorFlow servers.
docstr: Get the (first) TensorFlow task index of the "worker" for the local.
  
  Returns:
      int: Task index
docstr_tok: ["Get","the","(","first",")","TensorFlow","task","index","of","the","``","worker","''","for","the","local",".","Returns",":","int",":","Task","index"]
code: def get_local_worker_task_index(self):
      """
      Get the (first) TensorFlow task index of the "worker" for the local.
  
      Returns:
          int: Task index
      """
      return [
          i
          for i, a in enumerate(self._full_addresses)
          if self.get_local_address() in a
      ][0]
  
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 8 for calling the Cluster obj's underlying member method code with example usage: obj.get_local_worker_task_index() and returns: unknown