code: def testLatestPolicyModelOp_NonBlessedArtifacts(self):
      self.infra_validator_bless_model(self.model_1, blessed=False)
      self.infra_validator_bless_model(self.model_2, blessed=False)
      self.infra_validator_bless_model(self.model_3, blessed=False)
  
      self.evaluator_bless_model(self.model_1, blessed=False)
      self.evaluator_bless_model(self.model_2, blessed=False)
      self.evaluator_bless_model(self.model_3, blessed=False)
  
      with self.assertRaises(exceptions.SkipSignal):
          self._latest_policy_model(_LATEST_EVALUATOR_BLESSED)
          self._latest_policy_model(_LATEST_INFRA_VALIDATOR_BLESSED)
          self._latest_policy_model(_LATEST_BLESSED)
          self._latest_policy_model(_LATEST_PUSHED)
  
      self.assertDictKeysEmpty(
          self._latest_policy_model(
              _LATEST_EVALUATOR_BLESSED, raise_skip_signal=False
          ),
          policy=_LATEST_EVALUATOR_BLESSED,
      )
      self.assertDictKeysEmpty(
          self._latest_policy_model(
              _LATEST_INFRA_VALIDATOR_BLESSED, raise_skip_signal=False
          ),
          policy=_LATEST_INFRA_VALIDATOR_BLESSED,
      )
      self.assertDictKeysEmpty(
          self._latest_policy_model(
              _LATEST_BLESSED, raise_skip_signal=False
          ),
          policy=_LATEST_BLESSED,
      )
      self.assertDictKeysEmpty(
          self._latest_policy_model(
              _LATEST_PUSHED, raise_skip_signal=False
          ),
          policy=_LATEST_PUSHED,
      )
  
      model_push_1 = self.push_model(self.model_1)
  
      actual = self._latest_policy_model(_LATEST_PUSHED)
      self.assertArtifactMapsEqual(
          actual,
          {"model": [self.model_1], "model_push": [model_push_1]},
      )
  
      model_blessing_1 = self.evaluator_bless_model(
          self.model_1, blessed=True
      )
      model_infra_blessing_2 = self.infra_validator_bless_model(
          self.model_2, blessed=True
      )
  
      actual = self._latest_policy_model(_LATEST_EVALUATOR_BLESSED)
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_1],
              "model_blessing": [model_blessing_1],
          },
      )
  
      actual = self._latest_policy_model(
          _LATEST_INFRA_VALIDATOR_BLESSED
      )
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_2],
              "model_infra_blessing": [model_infra_blessing_2],
          },
      )
  
      with self.assertRaises(exceptions.SkipSignal):
          self._latest_policy_model(_LATEST_BLESSED)
  
      model_blessing_2 = self.evaluator_bless_model(
          self.model_2, blessed=True
      )
  
      actual = self._latest_policy_model(_LATEST_EVALUATOR_BLESSED)
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_2],
              "model_blessing": [model_blessing_2],
          },
      )
  
      actual = self._latest_policy_model(_LATEST_BLESSED)
      self.assertArtifactMapsEqual(
          actual,
          {
              "model": [self.model_2],
              "model_infra_blessing": [model_infra_blessing_2],
              "model_blessing": [model_blessing_2],
          },
      )
  
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 10 for calling the LatestPolicyModelOpTest obj's underlying member method code with example usage: obj.testLatestPolicyModelOp_NonBlessedArtifacts() without return types