docstr: Modularity matrix with weights
docstr_tok: ["Modularity","matrix","with","weights"]
file_path: networkx/networkx/linalg/tests/test_modularity.py
imports: import pytest
  import networkx
  from networkx.generators.degree_seq import havel_hakimi_graph
label_desc: Use image node_id 3 for calling the TestModularity obj's underlying member method code with example usage: obj.test_modularity_weight() without return types