code: def bipartite_graph_from_adjacency(x):
      """Instantiates a weighted graph from a square 2D array
  
      Parameters
      ----------
      x: 2D array instance, the input array
  
      Returns
      -------
      wg: BipartiteGraph instance
      """
      from scipy.sparse import coo_matrix
  
      return bipartite_graph_from_coo_matrix(coo_matrix(x))
  
file_path: nipy/nipy/algorithms/graph/bipartite_graph.py
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: bipartite_graph_from_adjacency(x) and returns: bipartite_graph_from_coo_matrix