code: def test_binary_cross_entropy_loss(
      *,
      dtype_and_true,
      dtype_and_pred,
      dtype_and_pos,
      backend_fw,
      from_logits,
      reduction,
      axis,
      epsilon,
      class_name,
      method_name,
      ground_truth_backend,
      init_flags,
      method_flags,
      on_device,
  ):
      dtype_true, true = dtype_and_true
      dtype_pred, pred = dtype_and_pred
      dtype_pos_weight, pos_weight = dtype_and_pos
  
      if from_logits:
          helpers.test_method(
              backend_to_test=backend_fw,
              ground_truth_backend=ground_truth_backend,
              init_flags=init_flags,
              method_flags=method_flags,
              method_input_dtypes=dtype_true
              + dtype_pred
              + dtype_pos_weight,
              init_all_as_kwargs_np={
                  "from_logits": from_logits,
                  "epsilon": epsilon,
                  "reduction": reduction,
              },
              method_all_as_kwargs_np={
                  "true": true[0],
                  "pred": pred[0],
                  "pos_weight": pos_weight[0],
                  "axis": axis,
              },
              class_name=class_name,
              method_name=method_name,
              rtol_=1e-2,
              atol_=1e-2,
              on_device=on_device,
          )
      else:
          helpers.test_method(
              backend_to_test=backend_fw,
              ground_truth_backend=ground_truth_backend,
              init_flags=init_flags,
              method_flags=method_flags,
              method_input_dtypes=dtype_true + dtype_pred,
              init_all_as_kwargs_np={
                  "from_logits": from_logits,
                  "epsilon": epsilon,
                  "reduction": reduction,
              },
              method_all_as_kwargs_np={
                  "true": true[0],
                  "pred": pred[0],
                  "axis": axis,
              },
              class_name=class_name,
              method_name=method_name,
              rtol_=1e-2,
              atol_=1e-2,
              on_device=on_device,
          )
  
imports: from hypothesis import strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_method
label_desc: Use image node_id 1 for calling a global function with example usage: test_binary_cross_entropy_loss() without return types