code: def testInvalidPrediction(self):
      extracts = util.StandardExtracts(
          {
              constants.LABELS_KEY: np.array(["cats", "dogs"]),
              constants.PREDICTIONS_KEY: {
                  "classes": np.array([["birds", "dogs"]]),
                  "scores": np.array([[0.1, 0.3]]),
              },
          }
      )
      with self.assertRaisesRegex(
          ValueError, "Predicted classes must be a 1d numpy array."
      ):
          _ = next(
              set_match_preprocessors.SetMatchPreprocessor(
                  class_key="",
                  weight_key="",
                  prediction_class_key="classes",
                  prediction_score_key="scores",
              ).process(extracts=extracts)
          )
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import apache_beam
  from apache_beam.testing import util
  import numpy
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.metrics.preprocessors import set_match_preprocessors
  from tensorflow_model_analysis.utils import util
label_desc: Use image node_id 11 for calling the SetMatchPreprocessorTest obj's underlying member method code with example usage: obj.testInvalidPrediction() without return types