docs: def save_to_temp(content, file_name=None):
      """Save the contents into a temp file."""
  
      #output = "results.html"
      temp_dir = tempfile.gettempdir()
      #tempfile.TemporaryDirectory()
      #tempfile.NamedTemporaryFile(mode='w+t') as f:
      out_file = os.path.join(temp_dir, file_name)
      #if os.path.exists(output) and os.path.isfile(output):
      file = open(out_file, 'w')
      file.write(content)
      file.close()
      #print("results saved in results.html file.")
      #return output
      #output = str(pathlib.Path(f.name))
      return out_file