code: def check_presence_download(filename, backup_url):
      
      import os
      filename = str(filename) #  Throws error for Path on 3.5
      if not os.path.exists(filename):
          from .readwrite import download_progress
          dr = os.path.dirname(filename)
          try:
              os.makedirs(dr)
          except FileExistsError:
              pass  # ignore if dir already exists
          from urllib.request import urlretrieve
          urlretrieve(backup_url, filename, reporthook=download_progress)
docs: Check if file is present otherwise download.