code: def count_words(file):
      """Counts the word frequences in a list of sentences.
  
      Note:
        This is a helper function for parallel execution of `Vocabulary.from_text`
        method.
      """
      c = Counter()
      with open(file, "r") as f:
          for l in f:
              words = l.strip().split()
              c.update(words)
      return c
  
file_path: deepwalk/deepwalk/walks.py
imports: import logging
  from io import open
  from os import path
  from time import time
  from multiprocessing import cpu_count
  import random
  from concurrent.futures import ProcessPoolExecutor
  from collections import Counter
  from six.moves import zip
  from .None import graph
label_desc: Use image node_id 1 for calling a global function with example usage: count_words(file) and returns: c