code: def get_phrase(words, index, length):
      assert index < len(words) - length + 1
      phr = " ".join(words[index : index + length])
      for i in range(index, index + length):
          words.pop(index)
      return phr
  
imports: import argparse
  import random
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: get_phrase(words, index, length) and returns: phr