docstr: Directed Modularity matrix
docstr_tok: ["Directed","Modularity","matrix"]
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 4 for calling the TestModularity obj's underlying member method code with example usage: obj.test_directed_modularity() without return types