class_docstr: Tests for deprecated non-resource variant of stack ops.
code: def _testSameNameStacks(self, use_gpu):
      with self.cached_session(use_gpu=use_gpu):
          h1 = gen_data_flow_ops._stack(
              dtypes.float32, stack_name="foo"
          )
          c1 = gen_data_flow_ops.stack_push(h1, 4.0)
          h2 = gen_data_flow_ops._stack(
              dtypes.float32, stack_name="foo"
          )
          c2 = gen_data_flow_ops.stack_push(h2, 5.0)
          _ = c1 + c2
          self.assertNotEqual(
              self.evaluate(h1)[1], self.evaluate(h2)[1]
          )
  
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 StackOpRefTest obj's underlying member method code with example usage: obj._testSameNameStacks(use_gpu) without return types