class_docstr: Strategy that resolves the latest n(=1) artifacts per each channel.
  
  Note that this ResolverStrategy is experimental and is subject to change in
  terms of both interface and implementation.
  
  Don't construct LatestArtifactStrategy directly, example usage:
  ```
    model_resolver = Resolver(
        strategy_class=LatestArtifactStrategy,
        model=Channel(type=Model),
    ).with_id('latest_model_resolver')
    model_resolver.outputs['model']
  ```
code: def __init__(self, desired_num_of_artifacts: Optional[int] = 1):
      self._desired_num_of_artifact = desired_num_of_artifacts
  
file_path: tfx/tfx/dsl/input_resolution/strategies/latest_artifact_strategy.py
imports: from typing import Dict, List, Optional
  from tfx import types
  from tfx.dsl.components.common import resolver
  from tfx.utils import doc_controls
  import ml_metadata
label_desc: Use image node_id 1 to create a new LatestArtifactStrategy object from inherited base classes: resolver with example: obj = LatestArtifactStrategy(desired_num_of_artifacts)