code: def temp_filename():
      fd, filename = tempfile.mkstemp()
      yield filename
      try:
          os.close(fd)
          os.unlink(filename)
      except Exception:
          print(
              "Couldn't close or delete file "
              "{filename}.".format(filename=filename)
          )
  
file_path: statsmodels/statsmodels/tsa/statespace/tests/test_save.py
imports: import pickle
  import os
  import tempfile
  import pytest
  from statsmodels import datasets
  from statsmodels.tsa.statespace import sarimax, structural, varmax, dynamic_factor
  from numpy.testing import assert_allclose
label_desc: Use image node_id 1 for calling a global function with example usage: temp_filename() without return types