code: def restore_package_version_from_recycle_bin(self, package_version_details, feed_id, package_name, package_version):
          
          route_values = {}
          if feed_id is not None:
              route_values['feedId'] = self._serialize.url('feed_id', feed_id, 'str')
          if package_name is not None:
              route_values['packageName'] = self._serialize.url('package_name', package_name, 'str')
          if package_version is not None:
              route_values['packageVersion'] = self._serialize.url('package_version', package_version, 'str')
          content = self._serialize.body(package_version_details, 'PyPiRecycleBinPackageVersionDetails')
          self._send(http_method='PATCH',
                     location_id='07143752-3d94-45fd-86c2-0c77ed87847b',
                     version='5.0-preview.1',
                     route_values=route_values,
                     content=content)
docs: RestorePackageVersionFromRecycleBin.
          [Preview API] Restore a package version from the recycle bin to its associated feed.
          :param :class:`<PyPiRecycleBinPackageVersionDetails> <azure.devops.v5_0.py_pi_api.models.PyPiRecycleBinPackageVersionDetails>` package_version_details: Set the 'Deleted' state to 'false' to restore the package to its feed.
          :param str feed_id: Name or ID of the feed.
          :param str package_name: Name of the package.
          :param str package_version: Version of the package.