code: def GetTempDir():
      global _temp_dir
      if not _temp_dir:
          _temp_dir = tempfile.mkdtemp()
      return _temp_dir
  
file_path: googletest/googletest/test/gtest_test_utils.py
imports: import os
  import subprocess
  import sys
  import atexit
  import shutil
  import tempfile
  import unittest
label_desc: Use image node_id 7 for calling a global function with example usage: GetTempDir() and returns: _temp_dir