code: def temp_cwd(name="tempcwd", quiet=False):
      """
      Context manager that temporarily creates and changes the CWD.
  
      The function temporarily changes the current working directory
      after creating a temporary directory in the current directory with
      name *name*.  If *name* is None, the temporary directory is
      created using tempfile.mkdtemp.
  
      If *quiet* is False (default) and it is not possible to
      create or change the CWD, an error is raised.  If *quiet* is True,
      only a warning is raised and the original CWD is used.
  
      """
      with temp_dir(path=name, quiet=quiet) as temp_path:
          with change_cwd(temp_path, quiet=quiet) as cwd_dir:
              yield cwd_dir
  
imports: import collections.abc
  import contextlib
  import errno
  import os
  import re
  import stat
  import string
  import sys
  import time
  import unittest
  import warnings
  from test import support
label_desc: Use image node_id 16 for calling a global function with example usage: temp_cwd(name, quiet) without return types