code: def from_scipy(A):
      A = A.tocoo()
      row, col, value = (
          A.row.astype(np.int64),
          A.col.astype(np.int64),
          A.data,
      )
      row, col, value = (
          from_numpy(row),
          from_numpy(col),
          from_numpy(value),
      )
      index = torch.stack([row, col], dim=0)
      return index, value
  
imports: import numpy
  import scipy.sparse
  import torch
  from torch import from_numpy
label_desc: Use image node_id 4 for calling a global function with example usage: from_scipy(A) and returns: index,  value