code: def percentiles_from_benchmark_output(
      input_stream, length_percentile: int, time_percentile: int
  ) -> Tuple[int, float]:
      input_lengths = []
      translation_times = []
      for entry in read_benchmark_handler_output(input_stream):
          input_lengths.append(int(entry["input_tokens"]))
          translation_times.append(float(entry["translation_time"]))
      return compute_percentiles(
          input_lengths,
          length_percentile,
          translation_times,
          time_percentile,
      )
  
imports: import argparse
  from typing import Dict, Iterator, List, Tuple
label_desc: Use image node_id 3 for calling a global function with example usage: percentiles_from_benchmark_output(input_stream, length_percentile, time_percentile) and returns: compute_percentiles