def METHOD_NAME(policy_a, policy_b):
    if len(policy_a) != len(policy_b):
        return False
    if policy_a["Version"] != policy_b["Version"]:
        return False
    statement_a = policy_a["Statement"]
    statement_b = policy_b["Statement"]
    if len(statement_a) != len(statement_b):
        return False
    try:
        for item in statement_a:
            statement_b.remove(item)
    except ValueError:
        return False
    return not statement_b