def METHOD_NAME(
    alice, idle_policy, ursulas
):
    target = list(ursulas)[2]
    # First, let's imagine that Alice has sampled a Vladimir while making this policy.
    vladimir = Vladimir.from_target_ursula(target,
                                           substitute_verifying_key=True,
                                           sign_metadata=True)
    vladimir.node_storage.store_node_certificate(certificate=target.certificate, port=vladimir.rest_interface.port)
    # Ideally, a fishy node will be present in `known_nodes`,
    # This tests the case when it became fishy after discovering it
    # but before being selected for a policy.
    alice.known_nodes.record_node(vladimir)
    alice.known_nodes.record_fleet_state()
    with pytest.raises(vladimir.InvalidNode):
        idle_policy._ping_node(
            address=vladimir.checksum_address,
            network_middleware=alice.network_middleware,
        )