code: def download(fname, input_dir, dl_dir=None):
      
      try:
          manager = _get_storage_manager(fname)
      except ValueError:
          return fname
      return manager.download(fname, input_dir, dl_dir)
docs: Download the resource from the storage.