code: def _get_base_url(name):
      r"""
      根据name返回下载的url地址。
  
      :param str name: 支持dataset和embedding两种
      :return:
      """
      # 返回的URL结尾必须是/
      environ_name = "FASTNLP_{}_URL".format(name.upper())
  
      if environ_name in os.environ:
          url = os.environ[environ_name]
          if url.endswith("/"):
              return url
          else:
              return url + "/"
      else:
          URLS = {
              "embedding": "http://download.fastnlp.top/embedding/",
              "dataset": "http://download.fastnlp.top/dataset/",
          }
          if name.lower() not in URLS:
              raise KeyError(f"{name} is not recognized.")
          return URLS[name.lower()]
  
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 4 for calling a global function with example usage: _get_base_url(name) and returns: URLS, url, unknown