code: def testStrategy(self):
      artifact_one = standard_artifacts.Examples()
      artifact_one.uri = "uri_one"
      artifact_one.id = 1
      artifact_two = standard_artifacts.Examples()
      artifact_two.uri = "uri_two"
      artifact_one.id = 2
  
      expected_artifact = max(
          artifact_one, artifact_two, key=lambda a: a.id
      )
  
      strategy = latest_artifact_strategy.LatestArtifactStrategy()
      result = strategy.resolve_artifacts(
          self._store, {"input": [artifact_two, artifact_one]}
      )
      self.assertIsNotNone(result)
      self.assertEqual(
          [a.uri for a in result["input"]], [expected_artifact.uri]
      )
  
file_path: tfx/tfx/dsl/input_resolution/strategies/latest_artifact_strategy_test.py
imports: import tensorflow
  from tfx.dsl.input_resolution.strategies import latest_artifact_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 2 for calling the LatestArtifactStrategyTest obj's underlying member method code with example usage: obj.testStrategy() without return types