code: def test_hinge_embedding_loss(
      dtype_and_inputs,
      margin,
      reduction,
      test_flags,
      backend_fw,
      fn_name,
      on_device,
  ):
      dtype, xx, yy = dtype_and_inputs
      helpers.test_function(
          input_dtypes=dtype,
          test_flags=test_flags,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          input=xx[0],
          target=yy,
          margin=margin,
          reduction=reduction,
          rtol_=1e-05,
          atol_=1e-05,
      )
  
file_path: ivy/ivy_tests/test_ivy/test_functional/test_experimental/test_nn/test_losses.py
imports: from hypothesis import strategies
  import numpy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test
label_desc: Use image node_id 2 for calling a global function with example usage: test_hinge_embedding_loss(dtype_and_inputs, margin, reduction, test_flags, backend_fw, fn_name, on_device) without return types