def streets_per_node_avg(G: nx.MultiDiGraph) -> float:
    """
    Calculate graph's average count of streets per node.

    Parameters
    ----------
    G
        Input graph.

    Returns
    -------
    spna
        Average count of streets per node.
    """
    spn_vals = streets_per_node(G).values()
    return float(sum(spn_vals) / len(G.nodes))

    Calculate graph's average count of streets per node.

    Parameters
    ----------
    G
        Input graph.

    Returns
    -------
    spna
        Average count of streets per node.
    
osmnx/stats.py