code: def test_label_smoothing(self):
      y_true = np.array([[0, 1, 0], [0, 0, 1]])
      logits = np.array([[1, 9, 0], [1, 8, 1]], dtype=np.float32)
      label_smoothing = 0.1
      cce_obj = metrics.CategoricalCrossentropy(
          from_logits=True, label_smoothing=label_smoothing
      )
      loss = cce_obj(y_true, logits)
      self.assertAllClose(loss, 3.667, atol=1e-3)
  
imports: import numpy
  from keras import metrics
  from keras import testing
label_desc: Use image node_id 6 for calling the CategoricalCrossentropyTest obj's underlying member method code with example usage: obj.test_label_smoothing() without return types