from pathlib import Path


def create_output_dir(dir_path: str) -> str:
    """Creates output directory if it doesn't exits

    Parameters
    -----------
    dir_path: the output file directory

    Return
    -------
    dir_path: the output file directory returned for later used


    """

    if not Path(dir_path).exists():
        print(f"creating output directory {dir_path}...\n")
        Path(dir_path).mkdir(parents=True, exist_ok=True)

    return dir_path