code: def get_tmp_file(dir=None):
      "Create and return a tmp filename, optionally at a specific path. `os.remove` when done with it."
      with tempfile.NamedTemporaryFile(delete=False, dir=dir) as f: return f.namf get_tmp_file(dir=None):
      "Create and return a tmp filename, optionally at a specific path. `os.remove` when done with it."
      with tempfile.NamedTemporaryFile(delete=False, dir=dir) as f: return f.name
docs: Create and return a tmp filename, optionally at a specific path. `os.remove` when done with it.