code: def test_numpy_multigraph(multigraph_test_graph, operator, expected):
      A = nx.to_numpy_array(
          multigraph_test_graph, multigraph_weight=operator
      )
      assert A[1, 0] == expected
  
imports: import pytest
  import networkx
  from networkx.generators.classic import barbell_graph, cycle_graph, path_graph
  from networkx.utils import graphs_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_numpy_multigraph(multigraph_test_graph, operator, expected) without return types