def METHOD_NAME(self):
    G = nx.complete_bipartite_graph(6, 9)
    result = BytesIO()
    nx.write_sparse6(G, result)
    # Compared with sage
    expected = b">>sparse6<<:Nk" + b"?G`cJ" * 9 + b"\n"
    assert result.getvalue() == expected