code: def test_to_pandas_adjacency_with_nodelist():
      G = nx.complete_graph(5)
      nodelist = [1, 4]
      expected = pd.DataFrame(
          [[0, 1], [1, 0]], dtype=int, index=nodelist, columns=nodelist
      )
      pd.testing.assert_frame_equal(
          expected, nx.to_pandas_adjacency(G, nodelist, dtype=int)
      )
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal, graphs_equal, nodes_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_to_pandas_adjacency_with_nodelist() without return types