code: def test_compute_categorical_labels(self):
      preds = np.array([[0.01, 0.99], [1, 0], [0.99, 0.1], [0, 1]])
      truths = np.array([[0, 1], [0, 1], [1, 0], [1, 0]])
  
      labels = Normalizer.compute_categorical_labels(preds, truths)
      self.assertTrue(np.min(labels) >= 0)
      self.assertFalse(np.isnan(labels).any())
      self.assertFalse(np.isinf(labels).any())
  
imports: import unittest
  import numpy
  from lightwood.analysis.nc.norm import Normalizer
label_desc: Use image node_id 2 for calling the TestNcNormalizer obj's underlying member method code with example usage: obj.test_compute_categorical_labels() without return types