def METHOD_NAME(self, bucket_name):
    """
    Check if versioning is enabled on a given bucket.
    :param bucket_name: name of the S3 bucket to check for versioning.
    :return: True if versioning is enabled, False otherwise.
    """
    try:
        s3 = boto3.client("s3", region_name=self._region, **self._credentials)
        return s3.get_bucket_versioning(Bucket=bucket_name).get("Status") == "Enabled"
    except Exception as e:
        self.error(f"Failed when checking versioning for S3 bucket {bucket_name} with error {e}")
        raise