code: def testSqueezableLabels(self):
      label_values = np.ones(shape=(2, 3, 1))
      prediction_values = np.zeros(shape=(2, 3))
      (
          static_labels,
          static_predictions,
      ) = confusion_matrix.remove_squeezable_dimensions(
          label_values, prediction_values
      )
  
      labels_placeholder = array_ops.placeholder(dtype=dtypes.int32)
      predictions_placeholder = array_ops.placeholder(
          dtype=dtypes.int32
      )
      (
          dynamic_labels,
          dynamic_predictions,
      ) = confusion_matrix.remove_squeezable_dimensions(
          labels_placeholder, predictions_placeholder
      )
  
      expected_label_values = np.reshape(label_values, newshape=(2, 3))
      with self.cached_session():
          self.assertAllEqual(
              expected_label_values, self.evaluate(static_labels)
          )
          self.assertAllEqual(
              prediction_values, self.evaluate(static_predictions)
          )
          feed_dict = {
              labels_placeholder: label_values,
              predictions_placeholder: prediction_values,
          }
          self.assertAllEqual(
              expected_label_values,
              dynamic_labels.eval(feed_dict=feed_dict),
          )
          self.assertAllEqual(
              prediction_values,
              dynamic_predictions.eval(feed_dict=feed_dict),
          )
  
imports: import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import confusion_matrix
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the RemoveSqueezableDimensionsTest obj's underlying member method code with example usage: obj.testSqueezableLabels() without return types