code: def download(url):
      
      session = requests.Session()
      session.mount('file://', FileAdapter())
  
      try:
          res = session.get(url)
      except requests.exceptions.ConnectionError as e:
          raise e
  
      res.raise_for_status()
  
      return res
docs: Uses requests to download an URL, maybe from a file