<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_node_dir(node):
 """Return the absolute path of the directory of a filesystem node."""

        path = os.path.abspath(node)
        return path if os.path.isdir(path) else os.path.dirname(path)