code: def testStrategy(self):
      # Model with id 1, will be blessed.
      model_one = standard_artifacts.Model()
      model_one.uri = "model_one"
      model_one.id = 1
      # Model with id 2, will be blessed.
      model_two = standard_artifacts.Model()
      model_two.uri = "model_two"
      model_two.id = 2
      # Model with id 3, will not be blessed.
      model_three = standard_artifacts.Model()
      model_three.uri = "model_three"
      model_three.id = 3
  
      model_blessing_one = standard_artifacts.ModelBlessing()
      self._set_model_blessing_bit(model_blessing_one, model_one.id, 1)
      model_blessing_two = standard_artifacts.ModelBlessing()
      self._set_model_blessing_bit(model_blessing_two, model_two.id, 1)
  
      strategy = (
          latest_blessed_model_strategy.LatestBlessedModelStrategy()
      )
      result = strategy.resolve_artifacts(
          self._store,
          {
              "model": [model_one, model_two, model_three],
              "model_blessing": [
                  model_blessing_one,
                  model_blessing_two,
              ],
          },
      )
      self.assertEqual([a.uri for a in result["model"]], ["model_two"])
  
file_path: tfx/tfx/dsl/input_resolution/strategies/latest_blessed_model_strategy_test.py
imports: import tensorflow
  from tfx import types
  from tfx.components.model_validator import constants
  from tfx.dsl.input_resolution.strategies import latest_blessed_model_strategy
  from tfx.orchestration import metadata
  from tfx.types import standard_artifacts
  from tfx.utils import test_case_utils
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 3 for calling the LatestBlessedModelStrategyTest obj's underlying member method code with example usage: obj.testStrategy() without return types