code: def resolve_trainer_inputs(inputs, *, n: int):
      return LatestSpans(inputs, n=n)
  
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 1 for calling a global function with example usage: resolve_trainer_inputs(inputs) and returns: LatestSpans