code: def main(args):
      vocab = defaultdict(lambda: len(vocab) + 1)
      vocab["<unk>"]
      for line in fileinput.input(args.input):
          tokens = line.strip().split()
          for token in tokens:
              vocab[token]
      vocab["<eos>"]
  
      for key, value in sorted(vocab.items(), key=lambda x: x[1]):
          print("{} {}".format(key, value))
  
imports: import argparse
  import fileinput
  from collections import defaultdict
label_desc: Use image node_id 2 for calling a global function with example usage: main(args) without return types