code: def download_remote_script(url):
      
      temp_fh = tempfile.NamedTemporaryFile('wt', encoding='utf8', suffix=".py", delete=False)
      downloader = _ScriptDownloader(url)
      logger.info(
          "Downloading remote script from %r using (%r downloader) to %r",
          url, downloader.name, temp_fh.name)
  
      content = downloader.get()
      temp_fh.write(content)
      temp_fh.close()
      return temp_fh.name
docs: Download the content of a remote script to a local temp file.