momepy.
network_false_nodes
Check topology of street network and eliminate nodes of degree 2 by joining affected edges. Attributes are not preserved.
GeoDataFrame or GeoSeries containg edge representation of street network.