This function moves the working directory up a specified number of levels in the directory hierarchy.
Usage
guide_to_parent(current_dir = getwd(), levels_up = 1)
Details
The function allows for traversing up the directory tree by the specified number of levels. It can handle both absolute and relative directory paths and throws an error if the current directory is invalid. If the directory provided in `current_dir` is invalid or unreachable, the function throws an error. If the user reaches the root directory,a warning is issued.