code: def _get_temp_dir(dirpath, strategy):
      if _is_temp_dir(dirpath, strategy):
          temp_dir = dirpath
      else:
          temp_dir = os.path.join(dirpath, _get_base_dirpath(strategy))
      tf.io.gfile.makedirs(temp_dir)
      return temp_dir
  
file_path: keras-tuner/keras_tuner/backend/io.py
imports: import glob
  import os
  import shutil
  from keras_tuner.backend import config
label_desc: Use image node_id 8 for calling a global function with example usage: _get_temp_dir(dirpath, strategy) and returns: temp_dir