def get_all_transient_ids_in_household(g, transient_id):
    """Given transient id, get all transient ids from its household."""
    return (
        g.V(transient_id)
            .hasLabel("transientId")
            .in_("has_identity")
            .in_("member")
            .has("type", "household")
            .out("member")
            .out("has_identity").
        values("uid")
    )