code: def maybe_download_params(model_path):
      if os.path.exists(model_path) or not is_link(model_path):
          return model_path
      else:
          url = model_path
      tmp_path = os.path.join(MODELS_DIR, url.split("/")[-1])
      print("download {} to {}".format(url, tmp_path))
      os.makedirs(MODELS_DIR, exist_ok=True)
      download_with_progressbar(url, tmp_path)
      return tmp_path
  
file_path: PaddleOCR/ppocr/utils/network.py
imports: import os
  import sys
  import tarfile
  import requests
  from tqdm import tqdm
  from ppocr.utils.logging import get_logger
label_desc: Use image node_id 3 for calling a global function with example usage: maybe_download_params(model_path) and returns: tmp_path, model_path