code: def categorical_crossentropy(
      y_true, y_pred, from_logits=False, label_smoothing=0.0
  ):
      if from_logits:
          y_pred = ivy.softmax(y_pred)
      return ivy.mean(
          ivy.categorical_cross_entropy(y_true, y_pred, label_smoothing)
      )
  
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 9 for calling a global function with example usage: categorical_crossentropy(y_true, y_pred, from_logits, label_smoothing) and returns: ivy