code: def download_write_file(self, metadata, out_dir=None):
          
          fileName = metadata['name']
          path = os.path.join(out_dir or wandb_dir(), fileName)
          if self.file_current(fileName, metadata['md5']):
              return path, None
  
          size, response = self.download_file(metadata['url'])
  
          with open(path, "wb") as file:
              for data in response.iter_content(chunk_size=1024):
                  file.write(data)
  
          return path, response
docs: Download a file from a run and write it to wandb/
  
          Args:
              metadata (obj): The metadata object for the file to download. Comes from Api.download_urls().
  
          Returns:
              A tuple of the file's local path and the streaming response. The streaming response is None if the file already existed and was up to date.