docs: def user_data_dir(self):
          """Return ``user_data_dir``."""
          directory = appdirs.user_data_dir(self.appname, self.appauthor,
                               version=self.version, roaming=self.roaming)
          if self.create:
              self._ensure_directory_exists(directory)
          return directory