code: def _thresh_by_magnitude(theta, x):
      return torch.relu(torch.abs(x) - theta) * x.sign()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 17 for calling a global function with example usage: _thresh_by_magnitude(theta, x) and returns: unknown