code: def adjacency_spectrum(G, weight="weight"):
      """Returns eigenvalues of the adjacency matrix of G.
  
      Parameters
      ----------
      G : graph
         A NetworkX graph
  
      weight : string or None, optional (default='weight')
         The edge data key used to compute each value in the matrix.
         If None, then each edge has weight 1.
  
      Returns
      -------
      evals : NumPy array
        Eigenvalues
  
      Notes
      -----
      For MultiGraph/MultiDiGraph, the edges weights are summed.
      See to_numpy_array for other options.
  
      See Also
      --------
      adjacency_matrix
      """
      import scipy as sp
  
      return sp.linalg.eigvals(
          nx.adjacency_matrix(G, weight=weight).todense()
      )
  
imports: import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: adjacency_spectrum(G, weight) and returns: sp