code: def ctm(data):
      """generate ctm output for test"""
  
      sys.stdout.reconfigure(encoding="utf-8")
      for e in data["turn"]:
          tokens = e.text.split()
          duration = e.endTime - e.startTime
          interval = duration / len(tokens)
          startTime = e.startTime
          for token in tokens:
              sys.stdout.write(
                  "{} 1 {:.02f} {:.02f} ".format(
                      data["id"], startTime, interval
                  )
              )
              sys.stdout.write(token)
              sys.stdout.write("\n")
  
file_path: espnet/egs/mgb2/asr1/local/xml2stm.py
imports: import sys
  from xml.dom import minidom
label_desc: Use image node_id 5 for calling a global function with example usage: ctm(data) without return types