class_docstr: Unit tests for the global reaching centrality function.
class_docstr_tok: ["Unit","tests","for","the","global","reaching","centrality","function","."]
code: def test_non_positive_weights(self):
      with pytest.raises(nx.NetworkXError):
          G = nx.DiGraph()
          nx.global_reaching_centrality(G, weight="weight")
  
file_path: networkx/networkx/algorithms/centrality/tests/test_reaching.py
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestGlobalReachingCentrality obj's underlying member method code with example usage: obj.test_non_positive_weights() without return types