code: def testRefIdentityShape(self):
      shape = [2, 3]
      tensor = variable_v1.VariableV1(
          constant_op.constant(
              [[1, 2, 3], [6, 5, 4]], dtype=dtypes.int32
          )
      )
      self.assertEqual(shape, tensor.get_shape())
      self.assertEqual(
          shape, gen_array_ops.ref_identity(tensor).get_shape()
      )
  
file_path: tensorflow/tensorflow/python/kernel_tests/v1_compat_tests/identity_op_py_test.py
imports: from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the IdentityOpTest obj's underlying member method code with example usage: obj.testRefIdentityShape() without return types