code: def get_home_dir():
      """
      Return location of the user's home directory.
  
      """
      home = os.getenv("HOME")
      if home is None:
          # This expanduser usually works on Windows (see discussion on
          # theano-users, July 13 2010).
          home = os.path.expanduser("~")
          if home == "~":
              # This might happen when expanduser fails. Although the cause of
              # failure is a mystery, it has been seen on some Windows system.
              home = os.getenv("USERPROFILE")
      assert home is not None
      return home
  
imports: from __future__ import absolute_import, print_function, division
  import errno
  import os
  import sys
  import logging
  import numpy
  import platform
  import textwrap
  import re
  import socket
  import struct
  import warnings
  from six import string_types
  import theano
  from theano.configparser import AddConfigVar, BoolParam, ConfigParam, EnumStr, FloatParam, IntParam, StrParam, TheanoConfigParser, THEANO_FLAGS_DICT
  from theano.misc.cpucount import cpuCount
  from theano.misc.windows import call_subprocess_Popen, output_subprocess_Popen
  from theano.compat import maybe_add_to_os_environ_pathlist
label_desc: Use image node_id 29 for calling a global function with example usage: get_home_dir() and returns: home