code: def _read_news(filepath, news_words, news_entities, tokenizer):
      with open(filepath, encoding="utf-8") as f:
          lines = f.readlines()
      for line in lines:
          splitted = line.strip("\n").split("\t")
          news_words[splitted[0]] = tokenizer.tokenize(
              splitted[3].lower()
          )
          news_entities[splitted[0]] = []
          for entity in json.loads(splitted[6]):
              news_entities[splitted[0]].append(
                  (entity["SurfaceForms"], entity["WikidataId"])
              )
      return news_words, news_entities
  
imports: import os
  import random
  import logging
  import json
  import numpy
  import re
  from tqdm import tqdm
  from nltk.tokenize import RegexpTokenizer
  from recommenders.datasets.download_utils import maybe_download, download_path, unzip_file
label_desc: Use image node_id 8 for calling a global function with example usage: _read_news(filepath, news_words, news_entities, tokenizer) and returns: news_words,  news_entities