code: def _sum_reduce_func(inputs, dim):
      return th.sum(inputs, dim=dim)
  
imports: from functools import partial
  import torch
  import torch.nn
  from ...base import DGLError
label_desc: Use image node_id 3 for calling a global function with example usage: _sum_reduce_func(inputs, dim) and returns: th