code: def compute_percentiles(
      lengths: List[int],
      length_percentile: int,
      times: List[float],
      time_percentile: int,
  ) -> Tuple[int, float]:
      # Length percentile
      lp_i = min(
          int((length_percentile / 100) * len(lengths)),
          len(lengths) - 1,
      )
      lp = sorted(lengths)[lp_i]
  
      # Time percentile (of length percentile)
      percentile_points = sorted(zip(lengths, times))[: lp_i + 1]
      percentile_times = [point[1] for point in percentile_points]
      tp_i = min(
          int((time_percentile / 100) * len(percentile_times)),
          len(percentile_times) - 1,
      )
      tp = sorted(percentile_times)[tp_i]
      return lp, tp
  
imports: import argparse
  from typing import Dict, Iterator, List, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: compute_percentiles(lengths, length_percentile, times, time_percentile) and returns: lp,  tp