code: def to_torch_sparse(index, value, m, n):
      return torch.sparse_coo_tensor(index.detach(), value, (m, n))
  
imports: import numpy
  import scipy.sparse
  import torch
  from torch import from_numpy
label_desc: Use image node_id 1 for calling a global function with example usage: to_torch_sparse(index, value, m, n) and returns: torch