def rule(event):
    if any(
        [
            "\\imposecost" in event.deep_get("PipeName", default=""),
            "\\imposingcost" in event.deep_get("PipeName", default=""),
        ]
    ):
        return True
    return False
