code: def replica(self, replica):
      self._replica = _as_int_or_none(replica)
      self._as_string, self._hash = None, None
  
imports: from tensorflow.python.util.tf_export import tf_export
  from tensorflow.python import pywrap_tfe
label_desc: Use image node_id 2 for calling the DeviceSpecV1 obj's underlying member method code with example usage: obj.replica(replica) without return types