docstr: Different stacks with the same name do not interfere.
docstr_tok: ["Different","stacks","with","the","same","name","do","not","interfere","."]
code: def _testSameNameStacks(self, use_gpu):
      """Different stacks with the same name do not interfere."""
      with self.cached_session(use_gpu=use_gpu) as sess:
          h1 = gen_data_flow_ops.stack_v2(
              -1, elem_type=dtypes.float32, stack_name="foo"
          )
          h2 = gen_data_flow_ops.stack_v2(
              -1, elem_type=dtypes.float32, stack_name="foo"
          )
  
          c1 = gen_data_flow_ops.stack_push_v2(h1, 4.0)
          with ops.control_dependencies([c1]):
              c2 = gen_data_flow_ops.stack_push_v2(h2, 5.0)
          with ops.control_dependencies([c2]):
              pop1 = gen_data_flow_ops.stack_pop_v2(h1, dtypes.float32)
              pop2 = gen_data_flow_ops.stack_pop_v2(h2, dtypes.float32)
  
          out1, out2 = self.evaluate([pop1, pop2])
          self.assertAllClose(out1, 4.0)
          self.assertAllClose(out2, 5.0)
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_data_flow_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the StackOpTest obj's underlying member method code with example usage: obj._testSameNameStacks(use_gpu) without return types