code: def test_logistic_loss_equal_bce():
      N = 100
      loss_binary = gluon.loss.LogisticLoss(label_format="binary")
      loss_signed = gluon.loss.LogisticLoss(label_format="signed")
      loss_bce = gluon.loss.SigmoidBCELoss(from_sigmoid=False)
      data = mx.np.random.uniform(-10, 10, size=(N, 1))
      label = mx.np.round(mx.np.random.uniform(0, 1, size=(N, 1)))
      assert_almost_equal(
          loss_binary(data, label), loss_bce(data, label), atol=1e-6
      )
      assert_almost_equal(
          loss_signed(data, 2 * label - 1),
          loss_bce(data, label),
          atol=1e-6,
      )
  
file_path: mxnet/tests/python/unittest/test_loss.py
imports: import mxnet
  import numpy
  from mxnet import gluon, autograd
  from mxnet.test_utils import assert_almost_equal, default_device
  from numpy.core.fromnumeric import size
  from common import xfail_when_nonstandard_decimal_separator
  import unittest
label_desc: Use image node_id 3 for calling a global function with example usage: test_logistic_loss_equal_bce() without return types