class_docstr: ReplicaContext for synchronized replica.
class_docstr_tok: ["ReplicaContext","for","synchronized","replica","."]
code: def devices(self):
      distribute_lib.require_replica_context(self)
      return [
          self._strategy.extended.worker_devices_by_replica[
              self._replica_id_in_sync_group
          ]
      ]
  
imports: import contextlib
  import threading
  import weakref
  from tensorflow.python import pywrap_tfe
  from tensorflow.python.autograph.core import ag_ctx
  from tensorflow.python.autograph.impl import api
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.distribute import distribute_utils
  from tensorflow.python.distribute import shared_variable_creator
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import device
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import summary_ops_v2
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import coordinator
  from tensorflow.python.util import traceback_utils
label_desc: Use image node_id 2 for calling the _MirroredReplicaContext obj's underlying member method code with example usage: obj.devices() and returns: list