(path)
return path
Simple helper that ensures that any directories specified in the path are
    created prior to use.

    Arguments:
        path (str): the path (may be to a file or directory).  Any intermediate
                    directories will be created.

    Returns:
        str: The unmodified path value.
Simple helper that ensures that any directories specified in the path are
    created prior to use.
Simple helper that ensures that any directories specified in the path are created prior to use .
def ensure_dirs_exist(path):
    """
    Simple helper that ensures that any directories specified in the path are
    created prior to use.

    Arguments:
        path (str): the path (may be to a file or directory).  Any intermediate
                    directories will be created.

    Returns:
        str: The unmodified path value.
    """
    outdir = os.path.dirname(path)
    if outdir != '' and not os.path.isdir(outdir):
        os.makedirs(outdir)
    return path
def ensure_dirs_exist ( path ) : outdir = os . path . dirname ( path ) if outdir != '' and not os . path . isdir ( outdir ) : os . makedirs ( outdir ) return path