code: def get_path(
      url, root_dir=WEIGHTS_HOME, md5sum=None, check_exist=True
  ):
      """Download from given url to root_dir.
      if file or directory specified by url is exists under
      root_dir, return the path directly, otherwise download
      from url and decompress it, return the path.
      url (str): download url
      root_dir (str): root dir for downloading
      md5sum (str): md5 sum of download package
      """
      # parse path after download to decompress under root_dir
      fullpath = map_path(url, root_dir)
  
      # For same zip file, decompressed directory name different
      # from zip file name, rename by following map
      decompress_name_map = {
          "ppTSM_fight": "ppTSM",
      }
      for k, v in decompress_name_map.items():
          if fullpath.find(k) >= 0:
              fullpath = osp.join(osp.split(fullpath)[0], v)
  
      if osp.exists(fullpath) and check_exist:
          if not osp.isfile(fullpath) or _check_exist_file_md5(
              fullpath, md5sum, url
          ):
              return fullpath, True
          else:
              os.remove(fullpath)
  
      fullname = _download_dist(url, root_dir, md5sum)
  
      # new weights format which postfix is 'pdparams' not
      # need to decompress
      if osp.splitext(fullname)[-1] not in [".pdparams", ".yml"]:
          _decompress_dist(fullname)
  
      return fullpath, False
  
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 11 for calling a global function with example usage: get_path(url, root_dir, md5sum, check_exist) and returns: fullpath,  False, fullpath,  True