code: def test_cross_entropy(
      dtype_true_axis,
      dtype_and_pred,
      reduction,
      epsilon,
      test_flags,
      backend_fw,
      fn_name,
      on_device,
  ):
      pred_dtype, pred = dtype_and_pred
      true_dtype, true, axis = dtype_true_axis
  
      helpers.test_function(
          input_dtypes=true_dtype + pred_dtype,
          test_flags=test_flags,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          rtol_=1e-02,
          atol_=1e-02,
          true=true[0],
          pred=pred[0],
          axis=axis,
          epsilon=epsilon,
          reduction=reduction,
      )
  
imports: from hypothesis import strategies
  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_cross_entropy(dtype_true_axis, dtype_and_pred, reduction, epsilon, test_flags, backend_fw, fn_name, on_device) without return types