code: def _compare_shapes(self, ref_preds, coreml_preds):
      if np.squeeze(ref_preds).shape != np.squeeze(coreml_preds).shape:
          return False
      else:
          return True
  
imports: from __future__ import print_function
  import unittest
  import numpy
  import coremltools.models.datatypes
  from coremltools.models import neural_network
  from coremltools.models import MLModel
  from coremltools.models.utils import _is_macos, _macos_version
  from coremltools._deps import _HAS_TF, MSG_TF1_NOT_FOUND
  import itertools
label_desc: Use image node_id 1 for calling the CorrectnessTest obj's underlying member method code with example usage: obj._compare_shapes(ref_preds, coreml_preds) and returns: False, True