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.
      """
      dirpath = os.path.dirname(filepath)
      base = os.path.basename(filepath)
      return os.path.join(write_dirpath(dirpath, strategy), base)
  
file_path: tensorflow-upstream/tensorflow/python/keras/distribute/distributed_file_utils.py
imports: import os
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.lib.io import file_io
label_desc: Use image node_id 6 for calling a global function with example usage: write_filepath(filepath, strategy) and returns: os