class_docstr: ReplicaContext for OneDeviceStrategy.
class_docstr_tok: ["ReplicaContext","for","OneDeviceStrategy","."]
code: def __init__(self, strategy):
      distribute_lib.ReplicaContext.__init__(
          self, strategy, replica_id_in_sync_group=0
      )
  
imports: from tensorflow.python.distribute import device_util
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.distribute import distribute_utils
  from tensorflow.python.distribute import input_lib
  from tensorflow.python.distribute import input_util
  from tensorflow.python.distribute import numpy_dataset
  from tensorflow.python.distribute.v1 import input_lib
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import while_loop
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 to create a new _OneDeviceReplicaContext object from inherited base classes: distribute_lib with example: obj = _OneDeviceReplicaContext(strategy)