code: def logit_margin_loss(
      input, target, reduction="elementwise_mean", offset=0.0
  ):
      loss = elementwise_margin(input, target)
      return _reduce_loss(loss, reduction) + offset
  
imports: import torch
  from torch.nn.modules.loss import _Loss
  from advertorch.utils import clamp
label_desc: Use image node_id 3 for calling a global function with example usage: logit_margin_loss(input, target, reduction, offset) and returns: unknown