def DownloadMapper(t):

  url, corpus = t

  url_hash = Hashhex(url)

  mapping_filename = '%s/entities/%s.txt' % (corpus, url_hash)
  if not os.path.exists(mapping_filename):
    raise RuntimeError('No metadata available for %s.' % url)

  return url, DownloadUrl(url, corpus)
Downloads an URL and checks that metadata is available for the URL.
dataset/ETHPy150Open deepmind/rc-data/generate_questions.py/DownloadMapper