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: import errno
  import logging
  import os
  import platform
  import re
  import socket
  import sys
  import textwrap
  import numpy
  from setuptools._distutils.spawn import find_executable
  import pytensor
  from pytensor.configparser import BoolParam, ConfigParam, DeviceParam, EnumStr, FloatParam, IntParam, StrParam, _create_default_config
  from pytensor.utils import LOCAL_BITWIDTH, PYTHON_INT_BITWIDTH, call_subprocess_Popen, maybe_add_to_os_environ_pathlist, output_subprocess_Popen
label_desc: Use image node_id 38 for calling a global function with example usage: _get_home_dir() and returns: home