def ensure_file_directory_exists(filepath):
    ensure_directory_exists(os.path.dirname(filepath))
    return filepath
A filter for file paths to ensure the directory of the
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/ensure_file_directory_exists