code: def get_log_dir():
      
      PATH = ''
      if platform.system() in ('Linux', 'Darwin'):
          PATH = tempfile.mkdtemp(prefix='andes-')
  
      elif platform.system() == 'Windows':
          APPDATA = os.getenv('APPDATA')
          PATH = os.path.join(APPDATA, 'andes')
  
      if not os.path.exists(PATH):
          os.makedirs(PATH)
      return PATH
docs: Get a directory for logging
  
      On Linux or macOS, '/tmp/andes' is the default. On Windows,
      '%APPDATA%/andes' is the default.
  
      Returns
      -------
      str
          Path to the logging directory