code: def load(name, return_path=False):
      """Download (if needed) dataset/model and load it to memory (unless `return_path` is set).
  
      Parameters
      ----------
      name: str
          Name of the model/dataset.
      return_path: bool, optional
          If True, return full path to file, otherwise, return loaded model / iterable dataset.
  
      Returns
      -------
      Model
          Requested model, if `name` is model and `return_path` == False.
      Dataset (iterable)
          Requested dataset, if `name` is dataset and `return_path` == False.
      str
          Path to file with dataset / model, only when `return_path` == True.
  
      Raises
      ------
      Exception
          Raised if `name` is incorrect.
  
      Examples
      --------
      Model example:
  
      .. sourcecode:: pycon
  
          >>> import gensim.downloader as api
          >>>
          >>> model = api.load("glove-twitter-25")  # load glove vectors
          >>> model.most_similar("cat")  # show words that similar to word 'cat'
  
      Dataset example:
  
      .. sourcecode:: pycon
  
          >>> import gensim.downloader as api
          >>>
          >>> wiki = api.load("wiki-en")  # load extracted Wikipedia dump, around 6 Gb
          >>> for article in wiki:  # iterate over all wiki script
          >>>     pass
  
      Download only example:
  
      .. sourcecode:: pycon
  
          >>> import gensim.downloader as api
          >>>
          >>> print(api.load("wiki-en", return_path=True))  # output: /home/user/gensim-data/wiki-en/wiki-en.gz
  
      """
      _create_base_dir()
      file_name = _get_filename(name)
      if file_name is None:
          raise ValueError("Incorrect model/corpus name")
      folder_dir = os.path.join(BASE_DIR, name)
      path = os.path.join(folder_dir, file_name)
      if not os.path.exists(folder_dir):
          _download(name)
  
      if return_path:
          return path
      else:
          sys.path.insert(0, BASE_DIR)
          module = __import__(name)
          return module.load_data()
  
imports: from __future__ import absolute_import
  import argparse
  import os
  import io
  import json
  import logging
  import sys
  import errno
  import hashlib
  import math
  import shutil
  import tempfile
  from functools import partial
label_desc: Use image node_id 10 for calling a global function with example usage: load(name, return_path) and returns: path, module