code: def write_filepath(filepath, strategy):
      """Returns the writing file path to be used to save file distributedly.
  
      Directory to contain `filepath` would be created if it doesn't exist.
  
      Args:
          filepath: Original filepath that would be used without distribution.
          strategy: The tf.distribute strategy object currently used.
  
      Returns:
          The writing filepath that should be used to save file with distribution.
      """
      if tf is None:
          return
  
      dirpath = os.path.dirname(filepath)
      base = os.path.basename(filepath)
      return os.path.join(write_dirpath(dirpath, strategy), base)
  
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 11 for calling a global function with example usage: write_filepath(filepath, strategy) and returns: os