code: def test_reshape_to_2d(self):
      tensor_3d = tf.constant([[[1], [2], [3]], [[4], [5], [6]]])
      tensor_3d_reshaped = utils.reshape_to_2d(tensor_3d)
      tensor_1d = tf.constant([1, 2, 3])
      tensor_1d_reshaped = utils.reshape_to_2d(tensor_1d)
      self.assertAllEqual(tensor_3d_reshaped, [[1, 2, 3], [4, 5, 6]])
      self.assertAllEqual(tensor_1d_reshaped, [[1], [2], [3]])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import tensorflow
  from tensorflow_ranking.python import utils
label_desc: Use image node_id 13 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_reshape_to_2d() without return types