code: def process_sents(sents, args):
      g2p = G2p()
      out_sents = []
      res_wrds = load_reserve_word(args.reserve_word)
      for sent in sents:
          col1 = ""
          if args.reserve_first_column:
              col1, sent = sent.split(None, 1)
          sent = process_sent(sent, g2p, res_wrds, args)
          if args.reserve_first_column and col1 != "":
              sent = f"{col1} {sent}"
          out_sents.append(sent)
      return out_sents
  
file_path: fairseq/examples/speech_text_joint_to_text/scripts/g2p_encode.py
imports: import argparse
  import itertools
  import logging
  import re
  import time
  from g2p_en import G2p
label_desc: Use image node_id 9 for calling a global function with example usage: process_sents(sents, args) and returns: out_sents