def METHOD_NAME(home_dir):
    bash_history_path = os.path.join(home_dir, ".bash_history")
    if os.path.exists(bash_history_path):
        with open(bash_history_path, "r") as bash_history_file:
            if bash_history_file.read():
                raise ValueError("{} contains history".format(bash_history_path))