class_docstr: Unit tests for writing a graph to a file in graph6 format.
class_docstr_tok: ["Unit","tests","for","writing","a","graph","to","a","file","in","graph6","format","."]
code: def test_complete_bipartite_graph(self):
      result = BytesIO()
      G = nx.complete_bipartite_graph(6, 9)
      nx.write_graph6(G, result, header=False)
      # The expected encoding here was verified by Sage.
      assert result.getvalue() == b"N??F~z{~Fw^_~?~?^_?\n"
  
imports: from io import BytesIO
  import pytest
  import networkx
  import networkx.readwrite.graph6
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 6 for calling the TestWriteGraph6 obj's underlying member method code with example usage: obj.test_complete_bipartite_graph() without return types