code: def find_max_prev(
      utts: List[Dict], max_sec: float, pos: int
  ) -> List[int]:
      # ..., pos-2, pos-1 (not including pos)
  
      results = []
      end_time = utts[pos]["offset"]
      while (
          pos - 1 >= 0
          and (end_time - utts[pos - 1]["offset"]) <= max_sec
      ):
          results.append(pos - 1)
          pos -= 1
  
      return results[::-1]
  
file_path: espnet/egs2/must_c_v2/s2t1/local/data_prep.py
imports: from argparse import ArgumentParser
  from pathlib import Path
  from typing import Dict, List, Optional, Tuple, Union
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: find_max_prev(utts, max_sec, pos) and returns: results