import re


def rule(event):
    if all(
        [
            re.match(
                r"(?i)/lib/python3\\.([5-9]|[0-9]{2})/site-packages/",
                event.deep_get("TargetFilename", default=""),
            ),
            event.deep_get("TargetFilename", default="").endswith(".pth"),
        ]
    ):
        return True
    return False
