parameters: ()
return_statement: return tmp_dir
docstring: Returns a temporary directory, which will be automatically deleted on exit.
      It may contain the taichi_core shared object or some misc. files.
docstring_summary: Returns a temporary directory, which will be automatically deleted on exit.
      It may contain the taichi_core shared object or some misc. files.
docstring_tokens: Returns a temporary directory which will be automatically deleted on exit . It may contain the taichi_core shared object or some misc . files .
function: def prepare_sandbox():
      '''
      Returns a temporary directory, which will be automatically deleted on exit.
      It may contain the taichi_core shared object or some misc. files.
      '''
      tmp_dir = tempfile.mkdtemp(prefix='taichi-')
      atexit.register(shutil.rmtree, tmp_dir)
      print(f'[Taichi] preparing sandbox at {tmp_dir}')
      os.mkdir(os.path.join(tmp_dir, 'runtime/'))
      return tmp_dir
function_tokens: def prepare_sandbox ( ) : tmp_dir = tempfile . mkdtemp ( prefix = 'taichi-' ) atexit . register ( shutil . rmtree , tmp_dir ) print ( f'[Taichi] preparing sandbox at {tmp_dir}' ) os . mkdir ( os . path . join ( tmp_dir , 'runtime/' ) ) return tmp_dir