code: def _testReshape(self, x, y, use_gpu=False):
      with self.cached_session(use_gpu=use_gpu):
          np_ans = x.reshape(y)
          tf_ans = array_ops.reshape(x, y)
          out = self.evaluate(tf_ans)
          self.assertEqual(tf_ans.get_shape(), out.shape)
          self.assertShapeEqual(np_ans, tf_ans)
  
          # Repeat with an int64 shape tensor.
          y64 = constant_op.constant(y, dtype=dtypes.int64)
          tf_ans = array_ops.reshape(x, y64)
          out = self.evaluate(tf_ans)
          self.assertEqual(tf_ans.get_shape(), out.shape)
          self.assertShapeEqual(np_ans, tf_ans)
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  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 array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ReshapeTest obj's underlying member method code with example usage: obj._testReshape(x, y, use_gpu) without return types