from pathlib import Path


def chk_dir(src_dir):
    """To check if the directory exists. Returns boolean
    """
    src_is_dir = Path(src_dir).is_dir()

    if src_is_dir is False:
        print(f"Test Directory '{src_dir}' does not exist.")
        print("Add a directory containing the source images to run this test")

    return src_is_dir