code: def test_default(self):
      m, n = 1000, 20
      y = np.zeros((m, n))
      y[(range(m), np.random.choice(range(n), m))] = 1.0
  
      ls = LabelSmoothing()
      _, y_smooth = ls(None, y)
      self.assertTrue(
          np.isclose(np.sum(y_smooth, axis=1), np.ones(m)).all()
      )
      self.assertTrue(
          (np.max(y_smooth, axis=1) == np.ones(m) * 0.9).all()
      )
  
file_path: adversarial-robustness-toolbox/tests/defences/test_label_smoothing.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.defences.preprocessor import LabelSmoothing
  from tests.utils import master_seed
label_desc: Use image node_id 2 for calling the TestLabelSmoothing obj's underlying member method code with example usage: obj.test_default() without return types