code: def sparsemoid(input):
      return (0.5 * input + 0.5).clamp_(0, 1)
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from torch import Tensor
  from torch.autograd import Function
  from torch.jit import script
label_desc: Use image node_id 1 for calling a global function with example usage: sparsemoid(input) and returns: unknown