code: def _get_embedding_url(embed_type, name):
      r"""
      给定embedding类似和名称，返回下载url
  
      :param str embed_type: 支持static, bert, elmo。即embedding的类型
      :param str name: embedding的名称, 例如en, cn, based等
      :return: str, 下载的url地址
      """
      #  从扩展中寻找下载的url
      _filename = FASTNLP_EXTEND_EMBEDDING_URL.get(embed_type, None)
      if _filename:
          url = _read_extend_url_file(_filename, name)
          if url:
              return url
      embed_map = PRETRAIN_MAP.get(embed_type, None)
      if embed_map:
          filename = embed_map.get(name, None)
          if filename:
              url = _get_base_url("embedding") + filename
              return url
          raise KeyError(
              "There is no {}. Only supports {}.".format(
                  name, list(embed_map.keys())
              )
          )
      else:
          raise KeyError(
              f"There is no {embed_type}. Only supports bert, elmo, static, gpt2, roberta"
          )
  
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 5 for calling a global function with example usage: _get_embedding_url(embed_type, name) and returns: url, url