code: def testLabelPreidictionImageSizeMismatch(self):
      extracts = {
          constants.LABELS_KEY: {
              "image/encoded": np.array([[1, 2]]),
          },
          constants.PREDICTIONS_KEY: {
              "image/pred/encoded": np.array([[1, 2, 3]]),
          },
      }
      with self.assertRaisesRegex(ValueError, "does not match"):
          _ = next(
              image_preprocessors.DecodeImagePreprocessor(
                  ground_truth_key="image/encoded",
                  prediction_key="image/pred/encoded",
                  decode_ground_truth=False,
                  decode_prediction=False,
              ).process(extracts=extracts)
          )
  
file_path: model-analysis/tensorflow_model_analysis/metrics/preprocessors/image_preprocessors_test.py
imports: import io
  from absl.testing import absltest
  from absl.testing import parameterized
  import apache_beam
  from apache_beam.testing import util
  import numpy
  from PIL import Image
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.metrics.preprocessors import image_preprocessors
  from tensorflow_model_analysis.utils import util
label_desc: Use image node_id 6 for calling the ImageDecodeTest obj's underlying member method code with example usage: obj.testLabelPreidictionImageSizeMismatch() without return types