def METHOD_NAME(self, s3_bucket, s3_key, version_id, dryrun=True):
    """
    Revert object to a previous version from S3.
    :param s3_bucket: bucket
    :param s3_key: key path for s3 file
    :param version_id: versionId to revert too
    :param dryrun: skip upload if dryrun = True
    :return:
    """
    logging.info(f"Reverting object {s3_key} in bucket {s3_bucket} to version {version_id}")
    logging.info(
        "Revert is performed with a roll-forward. "
        "The reverted file will have a different version id but the same ETag"
    )
    current_version = self.get_current_version(s3_bucket, s3_key)
    logging.info(f"Current version: {current_version}")
    if version_id != current_version:
        self.copy(
            s3_src_bucket=s3_bucket,
            s3_dest_bucket=s3_bucket,
            s3_object=s3_key,
            s3_object_version=version_id,
            dryrun=dryrun,
        )
    else:
        logging.info(f"Current version is already the requested one: {version_id}")