code: def test_categorical_crossentropy(self):
      y_a = np.random.random([2, 3])
      y_b = np.array([[0, 1, 0], [0, 0, 1]])
      kloss = objectives.categorical_crossentropy
      bloss = OptimConverter.to_bigdl_criterion(
          "categorical_crossentropy"
      )
      self.compare_loss(y_a, y_b, kloss, bloss)
  
file_path: BigDL/python/dllib/test/bigdl/nn/test_loss.py
imports: from __future__ import print_function
  import numpy
  import pytest
  from keras import objectives
  from bigdl.dllib.nn.keras.optimization import OptimConverter
  from test.bigdl.test_utils import BigDLTestCase
label_desc: Use image node_id 6 for calling the TestLoss obj's underlying member method code with example usage: obj.test_categorical_crossentropy() without return types