code: def convert(dictionaryStreams, inputs, output, unk, annotated):
      # create in memory dictionaries
      dictionaries = [
          {
              line.rstrip("\r\n").strip(): index
              for index, line in enumerate(dic)
          }
          for dic in dictionaryStreams
      ]
  
      # convert inputs
      for input in inputs:
          sequenceId = 0
          for index, line in enumerate(input):
              line = line.rstrip("\r\n")
              columns = line.split("\t")
              if len(columns) != len(dictionaries):
                  raise Exception(
                      "Number of dictionaries {0} does not correspond to the number of streams in line {1}:'{2}'".format(
                          len(dictionaries), index, line
                      )
                  )
              _convertSequence(
                  dictionaries,
                  columns,
                  sequenceId,
                  output,
                  unk,
                  annotated,
              )
              sequenceId += 1
  
file_path: CNTK/Scripts/txt2ctf.py
imports: import sys
  import argparse
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: convert(dictionaryStreams, inputs, output, unk, annotated) without return types