code: def test_nonisomorphic_trees_matrix(self):
      trees_2 = [[[0, 1], [1, 0]]]
      assert list(nx.nonisomorphic_trees(2, create="matrix")) == trees_2
      trees_3 = [[[0, 1, 1], [1, 0, 0], [1, 0, 0]]]
      assert list(nx.nonisomorphic_trees(3, create="matrix")) == trees_3
      trees_4 = [
          [[0, 1, 0, 1], [1, 0, 1, 0], [0, 1, 0, 0], [1, 0, 0, 0]],
          [[0, 1, 1, 1], [1, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0]],
      ]
      assert list(nx.nonisomorphic_trees(4, create="matrix")) == trees_4
  
file_path: networkx/networkx/generators/tests/test_nonisomorphic_trees.py
imports: import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 5 for calling the TestGeneratorNonIsomorphicTrees obj's underlying member method code with example usage: obj.test_nonisomorphic_trees_matrix() without return types