code: def test_paddle_cosine_embedding_loss(
      *,
      dtype_xs_label,
      margin,
      reduction,
      test_flags,
      fn_tree,
      backend_fw,
      frontend,
      on_device,
  ):
      input_dtypes, xs, label = dtype_xs_label
      input1_dtype, input1 = input_dtypes[0], xs[0]
      input2_dtype, input2 = input_dtypes[1], xs[1]
  
      helpers.test_frontend_function(
          input_dtypes=[input1_dtype, input2_dtype],
          frontend=frontend,
          backend_to_test=backend_fw,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          input1=input1,
          input2=input2,
          label=label[0],
          margin=margin,
          reduction=reduction,
      )
  
imports: from hypothesis import strategies
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 4 for calling a global function with example usage: test_paddle_cosine_embedding_loss() without return types