code: def test_graphwave():
      """
      Testing the GraphWave class.
      """
      model = GraphWave()
  
      graph = nx.watts_strogatz_graph(100, 10, 0.5)
  
      model.fit(graph)
  
      embedding = model.get_embedding()
  
      assert embedding.shape[0] == graph.number_of_nodes()
      assert embedding.shape[1] == 2 * model.sample_number
      assert type(embedding) == np.ndarray
  
      model = GraphWave(mechanism="exact")
  
      graph = nx.watts_strogatz_graph(100, 10, 0.5)
  
      model.fit(graph)
  
      embedding = model.get_embedding()
  
      assert embedding.shape[0] == graph.number_of_nodes()
      assert embedding.shape[1] == 2 * model.sample_number
      assert type(embedding) == np.ndarray
  
      model = GraphWave(mechanism="whatelse")
  
      model = GraphWave()
  
      graph = nx.watts_strogatz_graph(1100, 10, 0.5)
  
      model.fit(graph)
  
      embedding = model.get_embedding()
  
      assert embedding.shape[0] == graph.number_of_nodes()
      assert embedding.shape[1] == 2 * model.sample_number
      assert type(embedding) == np.ndarray
  
imports: import numpy
  import networkx
  from karateclub import Role2Vec, GraphWave
label_desc: Use image node_id 2 for calling a global function with example usage: test_graphwave() without return types