code: def get_cache_path():
      r"""
      获取 **fastNLP** 默认 cache 的存放路径, 如果将 ``FASTNLP_CACHE_PATH`` 设置在了环境变量中，将使用环境变量的值，使得不用每个用户都去下载。
      """
      if "FASTNLP_CACHE_DIR" in os.environ:
          fastnlp_cache_dir = os.environ.get("FASTNLP_CACHE_DIR")
          if os.path.isdir(fastnlp_cache_dir):
              return fastnlp_cache_dir
          else:
              raise NotADirectoryError(
                  f"{os.environ['FASTNLP_CACHE_DIR']} is not a directory."
              )
      fastnlp_cache_dir = os.path.expanduser(
          os.path.join("~", ".fastNLP")
      )
      return fastnlp_cache_dir
  
imports: import os
  import re
  import shutil
  import tempfile
  from pathlib import Path
  from urllib.parse import urlparse
  import requests
  from requests import HTTPError
  from fastNLP.core.log import logger
  from rich.progress import Progress, BarColumn, DownloadColumn, TimeRemainingColumn, TimeElapsedColumn
label_desc: Use image node_id 3 for calling a global function with example usage: get_cache_path() and returns: fastnlp_cache_dir, fastnlp_cache_dir