Return the directory name of a path. Similar to the Unix dirname command.
the path to evaluate.
{TypeError} if path is not a string.
path