parameters: (self, filename, mode='w+b', bufsize=-1, **kwds)
docstring: Open a file named `filename` in a temporary directory.
  
          This context manager is preferred over `NamedTemporaryFile` in
          stdlib `tempfile` when one needs to reopen the file.
  
          Arguments `mode` and `bufsize` are passed to `open`.
          Rest of the arguments are passed to `TemporaryDirectory`.
docstring_summary: Open a file named `filename` in a temporary directory.
docstring_tokens: Open a file named filename in a temporary directory .
function: def __init__(self, filename, mode='w+b', bufsize=-1, **kwds):
          """
          Open a file named `filename` in a temporary directory.
  
          This context manager is preferred over `NamedTemporaryFile` in
          stdlib `tempfile` when one needs to reopen the file.
  
          Arguments `mode` and `bufsize` are passed to `open`.
          Rest of the arguments are passed to `TemporaryDirectory`.
  
          """
          self._tmpdir = TemporaryDirectory(**kwds)
          path = _os.path.join(self._tmpdir.name, filename)
          self.file = open(path, mode, bufsize)
function_tokens: def __init__ ( self , filename , mode = 'w+b' , bufsize = - 1 , * * kwds ) : self . _tmpdir = TemporaryDirectory ( * * kwds ) path = _os . path . join ( self . _tmpdir . name , filename ) self . file = open ( path , mode , bufsize )