code: def testLatestPolicyModelOp_SeqeuntialExecutions_LatestModelChanges(
      self,
  ):
      with self.assertRaises(exceptions.SkipSignal):
          self._latest_policy_model(_LATEST_EVALUATOR_BLESSED)
          self._latest_policy_model(_LATEST_BLESSED)
  
      # Insert spurious Executions.
      self.push_model(self.model_1)
      infra_blessing_2 = self.infra_validator_bless_model(self.model_2)
      model_push_3 = self.push_model(self.model_3)
  
      model_blessing_1 = self.evaluator_bless_model(self.model_1)
      actual = self._latest_policy_model(_LATEST_EVALUATOR_BLESSED)
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_1],
              "model_blessing": [model_blessing_1],
          },
      )
  
      model_blessing_3 = self.evaluator_bless_model(self.model_3)
      actual = self._latest_policy_model(_LATEST_EVALUATOR_BLESSED)
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_3],
              "model_blessing": [model_blessing_3],
          },
      )
  
      # No model has been blessed by both the Evaluator and InfraValidator yet.
      with self.assertRaises(exceptions.SkipSignal):
          self._latest_policy_model(_LATEST_BLESSED)
  
      # model_3 should still be the latest Evaluator blessed model, since it is
      # the latest created.
      model_blessing_2 = self.evaluator_bless_model(self.model_2)
      actual = self._latest_policy_model(_LATEST_EVALUATOR_BLESSED)
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_3],
              "model_blessing": [model_blessing_3],
          },
      )
  
      actual = self._latest_policy_model(_LATEST_BLESSED)
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_2],
              "model_blessing": [model_blessing_2],
              "model_infra_blessing": [infra_blessing_2],
          },
      )
  
      actual = self._latest_policy_model(_LATEST_PUSHED)
      self.assertArtifactMapsEqual(
          actual,
          {"model": [self.model_3], "model_push": [model_push_3]},
      )
  
imports: from typing import Dict, List, Optional
  from absl.testing import parameterized
  import tensorflow
  from tfx import types
  from tfx.dsl.input_resolution import resolver_op
  from tfx.dsl.input_resolution.ops import latest_policy_model_op
  from tfx.dsl.input_resolution.ops import ops
  from tfx.dsl.input_resolution.ops import test_utils
  from tfx.orchestration.portable.input_resolution import exceptions
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 9 for calling the LatestPolicyModelOpTest obj's underlying member method code with example usage: obj.testLatestPolicyModelOp_SeqeuntialExecutions_LatestModelChanges() without return types