def is_same_network(net1: ipaddress.IPv4Network,
                    net2: ipaddress.IPv4Network) -> bool:
    if net1.compare_networks(net2) == 0:
        return True
    return False