<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def directory_remove(self, path):
 """Removes a guest directory if empty. Symbolic links in the final component will not be followed, instead an not-a-directory error is reported. in path of type str Path to the directory that should be removed. Guest path style. """

        if not isinstance(path, basestring):
            raise TypeError("path can only be an instance of type basestring")
        self._call("directoryRemove",
                     in_p=[path])