code: def test_paddle_nll_loss(
      dtype_and_x,
      dtype_and_weight,
      ignore_index,
      reduction,
      on_device,
      fn_tree,
      frontend,
      test_flags,
      backend_fw,
  ):
      x_dtype, x = dtype_and_x
      weight_dtype, weight = dtype_and_weight
      helpers.test_frontend_function(
          input_dtypes=[
              x_dtype[0],
              x_dtype[1],
              weight_dtype[0],
          ],
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          input=x[0],
          label=x[1],
          weight=weight[0],
          ignore_index=ignore_index,
          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 13 for calling a global function with example usage: test_paddle_nll_loss(dtype_and_x, dtype_and_weight, ignore_index, reduction, on_device, fn_tree, frontend, test_flags, backend_fw) without return types