from pathlib import Path


def get_child_dir(parent_path: Path, child_dir_name: str):
    """Creates dir if not exists and returns its path."""

    child_dir_path = parent_path.joinpath(child_dir_name)
    if not child_dir_path.is_dir():
        child_dir_path.mkdir()
    return child_dir_path.resolve()