def check_dir_name(dir_path):
    if isinstance(dir_path, str):
        if len(dir_path) > 0:
            if dir_path[-1] != "/":
                dir_path += "/"
        return dir_path
    else:
        raise ValueError("Incorrect string format for directory path.")


# ----------------------------
# Parameter formatting helpers
# ----------------------------


# Auto format kernel
dataset/ETHPy150Open tflearn/tflearn/tflearn/utils.py/check_dir_name/original