code: def testHasRubberStamp(self):
      # Model agnostic.
      self.assertFalse(model_util.has_rubber_stamp(None))
  
      # All non baseline models has rubber stamp.
      baseline = self.createTestEvalSharedModel(
          model_name=constants.BASELINE_KEY, is_baseline=True
      )
      candidate = self.createTestEvalSharedModel(
          model_name=constants.CANDIDATE_KEY, rubber_stamp=True
      )
      self.assertTrue(
          model_util.has_rubber_stamp([baseline, candidate])
      )
  
      # Not all non baseline has rubber stamp.
      candidate_nr = self.createTestEvalSharedModel(
          model_name=constants.CANDIDATE_KEY
      )
      self.assertFalse(model_util.has_rubber_stamp([candidate_nr]))
      self.assertFalse(
          model_util.has_rubber_stamp(
              [baseline, candidate, candidate_nr]
          )
      )
  
imports: import tempfile
  import unittest
  from absl.testing import parameterized
  import apache_beam
  from apache_beam.testing import util
  import numpy
  import tensorflow
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.utils import model_util
  from tensorflow_model_analysis.utils import util
  from tfx_bsl.tfxio import tf_example_record
  from google.protobuf import text_format
  from tensorflow.core.protobuf import saved_model_pb2
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 26 for calling the ModelUtilTest obj's underlying member method code with example usage: obj.testHasRubberStamp() without return types