code: def read_text(pth, rmspk=False):
      """read dev set text data (data/SEAME-dev-set/{devset}/text)"""
  
      idxs = []
      with open(pth, "r") as f:
          for line in f:
              line = line.strip()
              if line == "":
                  continue
  
              line = line.split()[0]
              if rmspk:
                  line = line.split("-", 1)[-1]
              idxs.append(line.lower())
          return idxs
  
imports: import argparse
  import collections
  import itertools
  import os
  import random
  import re
  import sys
label_desc: Use image node_id 11 for calling a global function with example usage: read_text(pth, rmspk) and returns: idxs