prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Duplicate check
  **Describe the bug**
  The new check `CKV_AWS_125` popped up complaining about me not activating point in time recovery for a DynamoDB table, which is surprising, because I already acknowledged it in the past. After digging into the code I found out that check `CKV_AWS_125` and `CKV_AWS_28` are identical. It would be great to delete one of them, probably the new one.
  
  **Additional context**
  https://github.com/bridgecrewio/checkov/blob/caafcbb83d6901b57c9a39464673670c150f0a33/checkov/terraform/checks/resource/aws/DynamodbRecovery.py#L5-L14
  https://github.com/bridgecrewio/checkov/blob/caafcbb83d6901b57c9a39464673670c150f0a33/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py#L5-L17
  
  
  </issue>
  <code>
  [start of checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py]
  1 from checkov.common.models.enums import CheckCategories, CheckResult
  2 from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  3 
  4 
  5 class DynamodbPointInTimeRecoveryEnabled(BaseResourceValueCheck):
  6     def __init__(self):
  7         name = "Ensure that that point in time recovery is enabled for Amazon DynamoDB tables"
  8         id = "CKV_AWS_125"
  9         supported_resources = ['aws_dynamodb_table']
  10         categories = [CheckCategories.BACKUP_AND_RECOVERY]
  11         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  12 
  13     def get_inspected_key(self):
  14         return "point_in_time_recovery/[0]/enabled"
  15 
  16     def get_expected_value(self):
  17         return True
  18 
  19 
  20 check = DynamodbPointInTimeRecoveryEnabled()
  21
  [end of checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py]
  [start of checkov/terraform/checks/resource/aws/KMSKeyRotation.py]
  1 from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  2 from checkov.common.models.enums import CheckCategories
  3 
  4 
  5 class KMSKeyRotation(BaseResourceValueCheck):
  6 
  7     def __init__(self):
  8         name = "Ensure KMS have rotation policy"
  9         id = "CKV_AWS_132"
  10         supported_resources = ['aws_kms_key']
  11         categories = [CheckCategories.ENCRYPTION]
  12         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  13 
  14     def get_inspected_key(self):
  15         return "enable_key_rotation"
  16 
  17 
  18 check = KMSKeyRotation()
  19
  [end of checkov/terraform/checks/resource/aws/KMSKeyRotation.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py b/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py
  deleted file mode 100644
  --- a/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py
  +++ /dev/null
  @@ -1,20 +0,0 @@
  -from checkov.common.models.enums import CheckCategories, CheckResult
  -from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  -
  -
  -class DynamodbPointInTimeRecoveryEnabled(BaseResourceValueCheck):
  -    def __init__(self):
  -        name = "Ensure that that point in time recovery is enabled for Amazon DynamoDB tables"
  -        id = "CKV_AWS_125"
  -        supported_resources = ['aws_dynamodb_table']
  -        categories = [CheckCategories.BACKUP_AND_RECOVERY]
  -        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  -
  -    def get_inspected_key(self):
  -        return "point_in_time_recovery/[0]/enabled"
  -
  -    def get_expected_value(self):
  -        return True
  -
  -
  -check = DynamodbPointInTimeRecoveryEnabled()
  diff --git a/checkov/terraform/checks/resource/aws/KMSKeyRotation.py b/checkov/terraform/checks/resource/aws/KMSKeyRotation.py
  deleted file mode 100644
  --- a/checkov/terraform/checks/resource/aws/KMSKeyRotation.py
  +++ /dev/null
  @@ -1,18 +0,0 @@
  -from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  -from checkov.common.models.enums import CheckCategories
  -
  -
  -class KMSKeyRotation(BaseResourceValueCheck):
  -
  -    def __init__(self):
  -        name = "Ensure KMS have rotation policy"
  -        id = "CKV_AWS_132"
  -        supported_resources = ['aws_kms_key']
  -        categories = [CheckCategories.ENCRYPTION]
  -        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  -
  -    def get_inspected_key(self):
  -        return "enable_key_rotation"
  -
  -
  -check = KMSKeyRotation()
  
verification_info: {"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py b/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py\ndeleted file mode 100644\n--- a/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py\n+++ /dev/null\n@@ -1,20 +0,0 @@\n-from checkov.common.models.enums import CheckCategories, CheckResult\n-from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n-\n-\n-class DynamodbPointInTimeRecoveryEnabled(BaseResourceValueCheck):\n-    def __init__(self):\n-        name = \"Ensure that that point in time recovery is enabled for Amazon DynamoDB tables\"\n-        id = \"CKV_AWS_125\"\n-        supported_resources = ['aws_dynamodb_table']\n-        categories = [CheckCategories.BACKUP_AND_RECOVERY]\n-        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n-\n-    def get_inspected_key(self):\n-        return \"point_in_time_recovery/[0]/enabled\"\n-\n-    def get_expected_value(self):\n-        return True\n-\n-\n-check = DynamodbPointInTimeRecoveryEnabled()\ndiff --git a/checkov/terraform/checks/resource/aws/KMSKeyRotation.py b/checkov/terraform/checks/resource/aws/KMSKeyRotation.py\ndeleted file mode 100644\n--- a/checkov/terraform/checks/resource/aws/KMSKeyRotation.py\n+++ /dev/null\n@@ -1,18 +0,0 @@\n-from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n-from checkov.common.models.enums import CheckCategories\n-\n-\n-class KMSKeyRotation(BaseResourceValueCheck):\n-\n-    def __init__(self):\n-        name = \"Ensure KMS have rotation policy\"\n-        id = \"CKV_AWS_132\"\n-        supported_resources = ['aws_kms_key']\n-        categories = [CheckCategories.ENCRYPTION]\n-        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n-\n-    def get_inspected_key(self):\n-        return \"enable_key_rotation\"\n-\n-\n-check = KMSKeyRotation()\n", "issue": "Duplicate check\n**Describe the bug**\r\nThe new check `CKV_AWS_125` popped up complaining about me not activating point in time recovery for a DynamoDB table, which is surprising, because I already acknowledged it in the past. After digging into the code I found out that check `CKV_AWS_125` and `CKV_AWS_28` are identical. It would be great to delete one of them, probably the new one.\r\n\r\n**Additional context**\r\nhttps://github.com/bridgecrewio/checkov/blob/caafcbb83d6901b57c9a39464673670c150f0a33/checkov/terraform/checks/resource/aws/DynamodbRecovery.py#L5-L14\r\nhttps://github.com/bridgecrewio/checkov/blob/caafcbb83d6901b57c9a39464673670c150f0a33/checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py#L5-L17\r\n\n", "before_files": [{"content": "from checkov.common.models.enums import CheckCategories, CheckResult\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass DynamodbPointInTimeRecoveryEnabled(BaseResourceValueCheck):\n    def __init__(self):\n        name = \"Ensure that that point in time recovery is enabled for Amazon DynamoDB tables\"\n        id = \"CKV_AWS_125\"\n        supported_resources = ['aws_dynamodb_table']\n        categories = [CheckCategories.BACKUP_AND_RECOVERY]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def get_inspected_key(self):\n        return \"point_in_time_recovery/[0]/enabled\"\n\n    def get_expected_value(self):\n        return True\n\n\ncheck = DynamodbPointInTimeRecoveryEnabled()\n", "path": "checkov/terraform/checks/resource/aws/DynamodbPointInTimeRecoveryEnabled.py"}, {"content": "from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom checkov.common.models.enums import CheckCategories\n\n\nclass KMSKeyRotation(BaseResourceValueCheck):\n\n    def __init__(self):\n        name = \"Ensure KMS have rotation policy\"\n        id = \"CKV_AWS_132\"\n        supported_resources = ['aws_kms_key']\n        categories = [CheckCategories.ENCRYPTION]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def get_inspected_key(self):\n        return \"enable_key_rotation\"\n\n\ncheck = KMSKeyRotation()\n", "path": "checkov/terraform/checks/resource/aws/KMSKeyRotation.py"}]}