code: def check_exist_or_download(url):
      """download data into tmp"""
      name = url.rsplit("/", 1)[-1]
      filename = os.path.join(download_dir, name)
      if not os.path.isfile(filename):
          print("Downloading %s" % url)
          urllib.request.urlretrieve(url, filename)
      return filename
  
imports: import re
  import os
  import pickle
  import urllib
  import tarfile
  import numpy
  import pandas
  import nltk
  from nltk.stem import PorterStemmer
  from nltk.tokenize.toktok import ToktokTokenizer
  from gensim.models.keyedvectors import KeyedVectors
  from sklearn.model_selection import train_test_split
  from bs4 import BeautifulSoup
label_desc: Use image node_id 3 for calling a global function with example usage: check_exist_or_download(url) and returns: filename