docstr: Prepare fake CoNLL-U files with fake HEAD to prevent multiple roots errors.
docstr_tok: ["Prepare","fake","CoNLL-U","files","with","fake","HEAD","to","prevent","multiple","roots","errors","."]
code: def _load_words(words):
      """Prepare fake CoNLL-U files with fake HEAD to prevent multiple roots errors."""
      lines, num_words = [], 0
      for w in words:
          parts = w.split(" ")
          if len(parts) == 1:
              num_words += 1
              lines.append(
                  "{}\t{}\t_\t_\t_\t_\t{}\t_\t_\t_".format(
                      num_words, parts[0], int(num_words > 1)
                  )
              )
          else:
              lines.append(
                  "{}-{}\t{}\t_\t_\t_\t_\t_\t_\t_\t_".format(
                      num_words + 1,
                      num_words + len(parts) - 1,
                      parts[0],
                  )
              )
              for part in parts[1:]:
                  num_words += 1
                  lines.append(
                      "{}\t{}\t_\t_\t_\t_\t{}\t_\t_\t_".format(
                          num_words, part, int(num_words > 1)
                      )
                  )
      return load_conllu(
          (io.StringIO if sys.version_info >= (3, 0) else io.BytesIO)(
              "\n".join(lines + ["\n"])
          )
      )
  
imports: from __future__ import division
  from __future__ import print_function
  import argparse
  import io
  import sys
  import unicodedata
  import unittest
label_desc: Use image node_id 1 for calling the TestAlignment obj's underlying member method code with example usage: obj._load_words(words) and returns: load_conllu