code: def test_autowrap_store_files_issue_gh12939():
      x, y = symbols("x y")
      tmp = "./tmp"
      saved_cwd = os.getcwd()
      temp_cwd = tempfile.mkdtemp()
      try:
          os.chdir(temp_cwd)
          f = autowrap(x + y, backend="dummy", tempdir=tmp)
          assert f() == str(x + y)
          assert os.access(tmp, os.F_OK)
      finally:
          os.chdir(saved_cwd)
          shutil.rmtree(temp_cwd)
  
imports: import os
  import tempfile
  import shutil
  from io import StringIO
  from sympy.core import symbols, Eq
  from sympy.utilities.autowrap import autowrap, binary_function, CythonCodeWrapper, UfuncifyCodeWrapper, CodeWrapper
  from sympy.utilities.codegen import CCodeGen, C99CodeGen, CodeGenArgumentListError, make_routine
  from sympy.testing.pytest import raises
  from sympy.testing.tmpfiles import TmpFileManager
label_desc: Use image node_id 10 for calling a global function with example usage: test_autowrap_store_files_issue_gh12939() without return types