class_docstr: Sample resolver operator.
code: def apply(self, inputs: typing_utils.ArtifactMultiMap):
      return {"examples": self._select_latest_spans(inputs["examples"])}
  
file_path: tfx/tfx/dsl/compiler/testdata/resolver_function_pipeline.py
imports: from typing import Sequence
  from tfx.components import CsvExampleGen
  from tfx.components import Trainer
  from tfx.dsl.input_resolution import resolver_function
  from tfx.dsl.input_resolution import resolver_op
  from tfx.orchestration import pipeline
  from tfx.proto import trainer_pb2
  import tfx.types
  from tfx.utils import typing_utils
label_desc: Use image node_id 2 for calling the LatestSpans obj's underlying member method code with example usage: obj.apply(inputs) and returns: dict