code: def testCondWithTensorValues(self):
      per_replica_1 = values_lib.PerReplica(
          (constant_op.constant("a"),)
      )
      per_replica_2 = values_lib.PerReplica(
          (constant_op.constant(["b", "c"]),)
      )
      condition = array_ops.placeholder_with_default(True, [])
  
      result = cond.cond(
          condition, lambda: per_replica_1, lambda: per_replica_2
      )
  
      self.assertLen(result.values, 1)
      self.assertAllEqual(result.values[0], "a")
  
imports: from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import test_util
  from tensorflow.python.distribute import values
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import cond
  from tensorflow.python.util import nest
label_desc: Use image node_id 7 for calling the PerReplicaTest obj's underlying member method code with example usage: obj.testCondWithTensorValues() without return types