code: def test_loss_correct(labels):
      smooth_alpha = Binned(**COMMON_KWARGS, label_smoothing=0.4)
      smooth_noalpha = Binned(**COMMON_KWARGS, label_smoothing=0.0)
      binned = Binned(**COMMON_KWARGS)
  
      assert np.allclose(
          binned.loss(labels).asnumpy(),
          smooth_noalpha.loss(labels).asnumpy(),
      )
  
      assert not np.allclose(
          binned.loss(labels).asnumpy(),
          smooth_alpha.loss(labels).asnumpy(),
      )
  
file_path: gluonts/test/mx/distribution/test_label_smoothing.py
imports: import itertools
  import mxnet
  import numpy
  import pytest
  from gluonts.mx.distribution import Binned, BinnedOutput
label_desc: Use image node_id 4 for calling a global function with example usage: test_loss_correct(labels) without return types