code: def sparse_mx_to_indices_values(sparse_mx):
      sparse_mx = sparse_mx.tocoo().astype(np.float32)
      indices = np.vstack((sparse_mx.row, sparse_mx.col)).astype(
          np.int64
      )
      values = sparse_mx.data
      shape = np.array(sparse_mx.shape)
      return indices, values, shape
  
imports: import numpy
  import scipy.sparse
  from scipy.sparse import coo_matrix
label_desc: Use image node_id 2 for calling a global function with example usage: sparse_mx_to_indices_values(sparse_mx) and returns: indices,  values,  shape