def _fallback_to_uns(dct, conns, dists, conns_key, dists_key):
    if ((conns is None) and (conns_key in dct)):
        conns = dct[conns_key]
    if ((dists is None) and (dists_key in dct)):
        dists = dct[dists_key]
    return (conns, dists)
def _fallback_to_uns(dct, conns, dists, conns_key, dists_key):
    if ((conns is None) and (conns_key in dct)):
        conns = dct[conns_key]
    if ((dists is None) and (dists_key in dct)):
        dists = dct[dists_key]
    return (conns, dists)