code: def test_convert_empty(graph_class, kwargs):
      G = graph_class()
      Gcg = nxcg.from_networkx(G, **kwargs)
      H = nxcg.to_networkx(Gcg)
      assert (
          G.number_of_nodes()
          == Gcg.number_of_nodes()
          == H.number_of_nodes()
          == 0
      )
      assert (
          G.number_of_edges()
          == Gcg.number_of_edges()
          == H.number_of_edges()
          == 0
      )
      assert (
          Gcg.edge_values
          == Gcg.edge_masks
          == Gcg.node_values
          == Gcg.node_masks
          == {}
      )
      assert G.graph == Gcg.graph == H.graph == {}
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/tests/test_convert.py
imports: import cupy
  import networkx
  import pytest
  import nx_cugraph
  from nx_cugraph import interface
label_desc: Use image node_id 1 for calling a global function with example usage: test_convert_empty(graph_class, kwargs) without return types