code: def rmdir(self, target_directory, dir_fd=None):
          
          target_directory = self._path_with_dir_fd(
              target_directory, self.rmdir, dir_fd)
          self.filesystem.rmdir(target_directory)
docs: Remove a leaf Fake directory.
  
          Args:
              target_directory: (str) Name of directory to remove.
              dir_fd: If not `None`, the file descriptor of a directory,
                  with `target_directory` being relative to this directory.
                  New in Python 3.3.
  
          Raises:
              OSError: if target_directory does not exist or is not a directory,
              or as per FakeFilesystem.remove_object. Cannot remove '.'.