code: def get_weights_path(url):
      """Get weights path from WEIGHTS_HOME, if not exists,
      download it from url.
      """
      url = parse_url(url)
      md5sum = None
      if url in MODEL_URL_MD5_DICT.keys():
          md5sum = MODEL_URL_MD5_DICT[url]
      path, _ = get_path(url, WEIGHTS_HOME, md5sum)
      return path
  
imports: import os, sys
  import os.path
  import hashlib
  import requests
  import shutil
  import tqdm
  import time
  import tarfile
  import zipfile
  from paddle.utils.download import _get_unique_endpoints
label_desc: Use image node_id 12 for calling a global function with example usage: get_weights_path(url) and returns: path