code: def _cos_embd_loss_helper(draw):
      dtype_inputs_shape = draw(
          helpers.dtype_and_values(
              available_dtypes=helpers.get_dtypes("valid"),
              min_num_dims=1,
              max_num_dims=2,
              min_dim_size=2,
              ret_shape=True,
              num_arrays=2,
          )
      )
  
      input_dtypes, inputs, shape = dtype_inputs_shape
  
      _, label = draw(
          helpers.dtype_and_values(
              dtype=input_dtypes,
              shape=(shape[0],),
              min_value=-1,
              max_value=1,
          ),
      )
  
      return input_dtypes, inputs, label
  
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 1 for calling a global function with example usage: _cos_embd_loss_helper(draw) and returns: input_dtypes,  inputs,  label