code: def hinge_embedding_loss(input, label, margin=1.0, reduction="mean"):
      if reduction not in ["sum", "mean", "none"]:
          raise ValueError(
              "'reduction' in 'hinge_embedding_loss' should be 'sum', 'mean' or 'none',"
              f" but received {reduction}."
          )
  
      zero_ = ivy.zeros([1], dtype=input.dtype)
      loss = ivy.where(label == 1.0, input, zero_) + ivy.where(
          label == -1.0,
          ivy.functional.ivy.activations.relu(margin - input),
          zero_,
      )
  
      if reduction == "mean":
          return ivy.mean(loss)
      elif reduction == "sum":
          return ivy.sum(loss)
      elif reduction == "none":
          return loss
  
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 7 for calling a global function with example usage: hinge_embedding_loss(input, label, margin, reduction) and returns: ivy, ivy, loss