code: def temporary_file(name=""):
      """This context manager creates file `name` in temporary directory and returns its full path.
      Temporary directory with included files will deleted at the end of context. Note, it won't create file.
  
      Parameters
      ----------
      name : str
          Filename.
  
      Yields
      ------
      str
          Path to file `name` in temporary directory.
  
      Examples
      --------
      This example demonstrates that created temporary directory (and included
      files) will deleted at the end of context.
  
      .. sourcecode:: pycon
  
          >>> import os
          >>> from gensim.test.utils import temporary_file
          >>> with temporary_file("temp.txt") as tf, open(tf, 'w') as outfile:
          ...     outfile.write("my extremely useful information")
          ...     print("Is this file exists? {}".format(os.path.exists(tf)))
          ...     print("Is this folder exists? {}".format(os.path.exists(os.path.dirname(tf))))
          Is this file exists? True
          Is this folder exists? True
          >>>
          >>> print("Is this file exists? {}".format(os.path.exists(tf)))
          Is this file exists? False
          >>> print("Is this folder exists? {}".format(os.path.exists(os.path.dirname(tf))))
          Is this folder exists? False
  
      """
  
      # note : when dropping python2.7 support, we can use tempfile.TemporaryDirectory
      tmp = tempfile.mkdtemp()
      try:
          yield os.path.join(tmp, name)
      finally:
          shutil.rmtree(tmp, ignore_errors=True)
  
file_path: gensim/gensim/test/utils.py
imports: import contextlib
  import tempfile
  import os
  import shutil
  from gensim.corpora import Dictionary
  from gensim.utils import simple_preprocess
label_desc: Use image node_id 3 for calling a global function with example usage: temporary_file(name) without return types