code: def clone_detach_and_grad(t):
      t = t.clone().detach()
      t.requires_grad_()
      return t
  
file_path: dgl/tests/python/pytorch/sparse/utils.py
imports: import numpy
  import torch
  from dgl.sparse import diag, from_csc, from_csr, SparseMatrix, spmatrix
label_desc: Use image node_id 1 for calling a global function with example usage: clone_detach_and_grad(t) and returns: t