code: def soft_margin_loss(
      input: paddle.Tensor,
      label: paddle.Tensor,
      /,
      *,
      reduction: Optional[str] = "mean",
  ) -> paddle.Tensor:
      return paddle.nn.functional.soft_margin_loss(
          input, label, reduction=reduction
      )
  
file_path: ivy/ivy/functional/backends/paddle/experimental/losses.py
imports: from typing import Optional
  import paddle
  import paddle.nn.functional
  import math
  from ivy.func_wrapper import with_unsupported_device_and_dtypes, with_supported_device_and_dtypes
  from .None import backend_version
label_desc: Use image node_id 4 for calling a global function with example usage: soft_margin_loss() and returns: paddle