code: def margin_ranking_loss(
      input, other, label, margin=0.0, reduction="mean", name=None
  ):
      reduction = _get_reduction_func(reduction)
  
      out = ivy.subtract(input, other)
      neg_label = ivy.negative(label)
      out = ivy.multiply(neg_label, out)
  
      if margin != 0.0:
          margin_var = ivy.full([1], margin, dtype=out.dtype)
          out = ivy.add(out, margin_var)
  
      out = ivy.where(out < 0, 0, out)
      out = reduction(out).astype(input.dtype)
      out = ivy.atleast_1d(out)
  
      return out
  
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  import ivy.functional.frontends.paddle
  from ivy.utils.exceptions import handle_exceptions
  from ivy.functional.frontends.paddle.func_wrapper import inputs_to_ivy_arrays, to_ivy_arrays_and_back
label_desc: Use image node_id 11 for calling a global function with example usage: margin_ranking_loss(input, other, label, margin, reduction, name) and returns: out