code: def get_data_home(data_home=None):
      """Return the path of the statsmodels data dir.
  
      This folder is used by some large dataset loaders to avoid
      downloading the data several times.
  
      By default the data dir is set to a folder named 'statsmodels_data'
      in the user home folder.
  
      Alternatively, it can be set by the 'STATSMODELS_DATA' environment
      variable or programatically by giving an explicit folder path. The
      '~' symbol is expanded to the user home folder.
  
      If the folder does not already exist, it is automatically created.
      """
      if data_home is None:
          data_home = environ.get(
              "STATSMODELS_DATA", join("~", "statsmodels_data")
          )
      data_home = expanduser(data_home)
      if not exists(data_home):
          makedirs(data_home)
      return data_home
  
imports: from statsmodels.compat.python import lrange
  from io import StringIO
  from os import environ, makedirs
  from os.path import abspath, dirname, exists, expanduser, join
  import shutil
  from urllib.error import HTTPError, URLError
  from urllib.parse import urljoin
  from urllib.request import urlopen
  import numpy
  from pandas import Index, read_csv, read_stata
label_desc: Use image node_id 11 for calling a global function with example usage: get_data_home(data_home) and returns: data_home