WriteToTempfile()
- We have two versions of this method: - One for Go versions below 1.17 using `ioutil.TempFile()` - One for Go versions >= 1.17 using `os.CreateTemp()`