code: def versionadded(reason="", version=""):
      
      adapter = SphinxAdapter('versionadded', reason=reason, version=version)
  
      # noinspection PyUnusedLocal
      @wrapt.decorator(adapter=adapter)
      def wrapper(wrapped, instance, args, kwargs):
          return wrapped(*args, **kwargs)
  
      return wrapper
docs: This decorator can be used to insert a "versionadded" directive
      in your function/class docstring in order to documents the
      version of the project which adds this new functionality in your library.
  
      :param str reason:
          Reason message which documents the addition in your library (can be omitted).
  
      :param str version:
          Version of your project which adds this feature.
          If you follow the `Semantic Versioning <https://semver.org/>`_,
          the version number has the format "MAJOR.MINOR.PATCH", and,
          in the case of a new functionality, the "PATCH" component should be "0".
  
      :return: the decorated function.