code: def make_tempfile(name):
      """Create an empty, named, temporary file for the duration of the context."""
      f = open(name, "w")
      f.close()
      try:
          yield
      finally:
          os.unlink(name)
  
imports: from __future__ import absolute_import
  import os
  import re
  import sys
  import tempfile
  from contextlib import contextmanager
  from io import StringIO
  from subprocess import Popen, PIPE
  from traitlets.config.loader import Config
  from IPython.utils.process import get_output_error_code
  from IPython.utils.text import list_strings
  from IPython.utils.io import temp_pyfile, Tee
  from IPython.utils import py3compat
  from IPython.utils.encoding import DEFAULT_ENCODING
  from .None import decorators
  from .None import skipdoctest
label_desc: Use image node_id 10 for calling a global function with example usage: make_tempfile(name) without return types