code: def test_non_randomness(k, weight, expected):
      G = nx.karate_club_graph()
      np.testing.assert_almost_equal(
          nx.non_randomness(G, k, weight)[0], expected, decimal=2
      )
  
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: test_non_randomness(k, weight, expected) without return types